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 .sbi
|
|
|
|
|
|
|
|
! #bytes in cx , top of stack in ax
|
|
|
|
.sbi:
|
|
|
|
pop bx ! return subress
|
|
|
|
cmp cx,2
|
|
|
|
jne 1f
|
|
|
|
pop cx
|
|
|
|
sub ax,cx
|
|
|
|
neg ax
|
|
|
|
jmp bx
|
|
|
|
1:
|
|
|
|
cmp cx,4
|
|
|
|
jne 9f
|
|
|
|
pop dx
|
|
|
|
pop cx
|
|
|
|
sub cx,ax
|
|
|
|
mov ax,cx
|
|
|
|
pop cx
|
1987-01-08 10:13:48 +00:00
|
|
|
sbb cx,dx
|
1985-02-07 15:33:13 +00:00
|
|
|
push cx
|
|
|
|
jmp bx
|
|
|
|
9:
|
1987-01-08 10:13:48 +00:00
|
|
|
.extern EODDZ
|
|
|
|
.extern .trp
|
1985-02-07 15:33:13 +00:00
|
|
|
mov ax,EODDZ
|
1988-07-13 14:29:32 +00:00
|
|
|
push bx
|
1985-02-07 15:33:13 +00:00
|
|
|
jmp .trp
|