ack/mach/pdp/libem/strhp.s
1994-06-24 14:02:31 +00:00

30 lines
384 B
ArmAsm

.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.sect .text
.define strhp~
.extern trp~,reghp~
! $Id$
EHEAP = 021
strhp~:
mov (sp)+,r0
mov (sp)+,r1
mov r0,-(sp)
mov r1,reghp~
cmp r1,2f
blos 1f
add $01777,r1
bic $01777,r1
mov r1,-(sp)
mov r1,2f
jsr pc,BRK
tst (sp)+
tst r0
blt 3f
1: rts pc
3: mov $EHEAP,-(sp)
jsr pc,trp~
rts pc
.sect .data
2: .data2 0