1987-05-15 09:11:10 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
|
|
|
|
.sect .text
|
|
|
|
.define strhp~
|
1988-04-11 11:03:22 +00:00
|
|
|
.extern trp~,reghp~,_end
|
1987-05-15 09:11:10 +00:00
|
|
|
! $Header$
|
1984-07-19 12:51:00 +00:00
|
|
|
indir = 0
|
|
|
|
|
1987-05-15 09:11:10 +00:00
|
|
|
break = 021
|
|
|
|
EHEAP = 021
|
1984-07-19 12:51:00 +00:00
|
|
|
|
|
|
|
strhp~:
|
|
|
|
mov (sp)+,r0
|
|
|
|
mov (sp)+,r1
|
|
|
|
mov r1,reghp~
|
|
|
|
cmp r1,2f+2
|
|
|
|
blos 1f
|
|
|
|
add $01777,r1
|
|
|
|
bic $01777,r1
|
|
|
|
mov r1,2f+2
|
1987-05-15 09:11:10 +00:00
|
|
|
sys indir ; .data2 2f
|
1984-07-19 12:51:00 +00:00
|
|
|
bcs 3f
|
|
|
|
1: jmp (r0)
|
|
|
|
3: mov $EHEAP,-(sp)
|
1988-04-11 11:13:20 +00:00
|
|
|
jsr pc,trp~
|
1988-04-11 11:03:22 +00:00
|
|
|
jmp (r0)
|
1987-05-15 09:11:10 +00:00
|
|
|
.sect .data
|
|
|
|
2: sys break; .data2 _end
|