1987-05-15 09:11:10 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
|
|
|
|
.sect .text
|
|
|
|
.define strhp~
|
1991-09-03 16:03:33 +00:00
|
|
|
.extern trp~,reghp~
|
1994-06-24 14:02:31 +00:00
|
|
|
! $Id$
|
1984-07-19 12:51:00 +00:00
|
|
|
|
1987-05-15 09:11:10 +00:00
|
|
|
EHEAP = 021
|
1984-07-19 12:51:00 +00:00
|
|
|
|
|
|
|
strhp~:
|
|
|
|
mov (sp)+,r0
|
|
|
|
mov (sp)+,r1
|
1991-09-03 16:03:33 +00:00
|
|
|
mov r0,-(sp)
|
1984-07-19 12:51:00 +00:00
|
|
|
mov r1,reghp~
|
1991-09-19 14:39:10 +00:00
|
|
|
cmp r1,2f
|
1984-07-19 12:51:00 +00:00
|
|
|
blos 1f
|
|
|
|
add $01777,r1
|
|
|
|
bic $01777,r1
|
1991-09-03 16:03:33 +00:00
|
|
|
mov r1,-(sp)
|
1991-09-19 14:39:10 +00:00
|
|
|
mov r1,2f
|
1992-06-30 16:39:47 +00:00
|
|
|
jsr pc,BRK
|
1991-09-03 16:03:33 +00:00
|
|
|
tst (sp)+
|
|
|
|
tst r0
|
|
|
|
blt 3f
|
|
|
|
1: rts pc
|
1984-07-19 12:51:00 +00:00
|
|
|
3: mov $EHEAP,-(sp)
|
1988-04-11 11:13:20 +00:00
|
|
|
jsr pc,trp~
|
1991-09-03 16:03:33 +00:00
|
|
|
rts pc
|
1991-09-19 14:39:10 +00:00
|
|
|
.sect .data
|
|
|
|
2: .data2 0
|