ack/mach/i386/libem/strhp.s

28 lines
349 B
ArmAsm
Raw Normal View History

1989-01-19 16:43:32 +00:00
.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
push ebx
push eax
1991-09-02 15:08:48 +00:00
call __brk
1989-01-19 16:43:32 +00:00
pop ecx
pop ebx
cmp eax,-1
je 2f
1:
mov (.limhp),ecx
1989-01-19 16:43:32 +00:00
jmp ebx
2:
mov eax,EHEAP
push ebx
jmp .trp