1987-01-08 10:13:48 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
|
|
|
.sect .text
|
1985-02-07 15:33:13 +00:00
|
|
|
.define .strhp
|
1988-04-11 11:37:54 +00:00
|
|
|
.extern .reghp, .limhp, EHEAP, .trp
|
1985-02-07 15:33:13 +00:00
|
|
|
|
|
|
|
.strhp:
|
|
|
|
pop bx
|
|
|
|
pop ax
|
|
|
|
mov (.reghp),ax
|
|
|
|
cmp ax,(.limhp)
|
|
|
|
jb 1f
|
|
|
|
add ax,02000
|
|
|
|
and ax,~0777
|
|
|
|
mov (.limhp),ax
|
|
|
|
cmp ax,sp
|
|
|
|
jae 2f
|
|
|
|
1:
|
|
|
|
jmp bx
|
|
|
|
2:
|
|
|
|
mov ax,EHEAP
|
1988-04-11 11:37:54 +00:00
|
|
|
push ax
|
|
|
|
call .trp
|
|
|
|
jmp bx
|