From be3c10d6356d0204c1f2648d0c577ddc8b38c6a0 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 19 Sep 1991 14:39:10 +0000 Subject: [PATCH] Fixes --- mach/pdp/libem/printf.s | 2 +- mach/pdp/libem/strhp.s | 7 +++++-- mach/pdp/libem/trp.s | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/mach/pdp/libem/printf.s b/mach/pdp/libem/printf.s index eec337b33..2172c4a5e 100644 --- a/mach/pdp/libem/printf.s +++ b/mach/pdp/libem/printf.s @@ -54,7 +54,7 @@ ready: mov r4,-(sp) mov $buff,-(sp) mov $01,-(sp) - jsr __write + jsr pc,__write add $06,sp mov (sp)+,r4 mov (sp)+,r3 diff --git a/mach/pdp/libem/strhp.s b/mach/pdp/libem/strhp.s index b3ba74e7a..3958713e3 100644 --- a/mach/pdp/libem/strhp.s +++ b/mach/pdp/libem/strhp.s @@ -11,12 +11,13 @@ strhp~: mov (sp)+,r1 mov r0,-(sp) mov r1,reghp~ - cmp r1,2f+2 + cmp r1,2f blos 1f add $01777,r1 bic $01777,r1 mov r1,-(sp) - jsr __brk + mov r1,2f + jsr pc,__brk tst (sp)+ tst r0 blt 3f @@ -24,3 +25,5 @@ strhp~: 3: mov $EHEAP,-(sp) jsr pc,trp~ rts pc +.sect .data +2: .data2 0 diff --git a/mach/pdp/libem/trp.s b/mach/pdp/libem/trp.s index 74ec60809..53aa3b767 100644 --- a/mach/pdp/libem/trp.s +++ b/mach/pdp/libem/trp.s @@ -6,7 +6,7 @@ fat~: jsr pc,trp~ - jsr __exit + jsr pc,__exit trp~: mov r0,-(sp) @@ -88,9 +88,9 @@ trp~: mov $013,-(sp) mov $buf,-(sp) mov $2,-(sp) - jsr __write + jsr pc,__write add $6,sp - jsr __exit + jsr pc,__exit .sect .data retar: .space 16 retend: