ack/mach/i386/libem/strhp.s
1989-01-19 16:43:32 +00:00

28 lines
348 B
ArmAsm

.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .text
.define .strhp
.extern .reghp, .limhp, EHEAP, .trp
.strhp:
pop ebx
pop eax
mov (.reghp),eax
cmp eax,(.limhp)
jb 1f
add eax,02000
and eax,~0777
mov (.limhp),eax
push ebx
push eax
call _brk
pop ecx
pop ebx
cmp eax,-1
je 2f
1:
jmp ebx
2:
mov eax,EHEAP
push ebx
jmp .trp