ack/mach/i86/libem/adi.s

26 lines
349 B
ArmAsm
Raw Normal View History

1985-02-07 15:33:13 +00:00
.define .adi
! $Header$
! #bytes in cx , top of stack in ax
.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:
mov ax,EODDZ
push ax
jmp .trp