ack/mach/i86/libem/adi.s

29 lines
416 B
ArmAsm
Raw Permalink Normal View History

1987-01-08 10:13:48 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss
1985-02-07 15:33:13 +00:00
.define .adi
! #bytes in cx , top of stack in ax
1987-01-08 10:13:48 +00:00
.sect .text
1985-02-07 15:33:13 +00:00
.adi:
pop bx ! return address
cmp cx,2
jne 1f
pop cx
add ax,cx
jmp bx
1:
cmp cx,4
jne 9f
pop dx
pop cx
add ax,cx
pop cx
adc dx,cx
push dx
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