ack/mach/i86/libem/dvu.s
1985-02-17 00:57:20 +00:00

36 lines
444 B
ArmAsm

.define .dvu
! $Header$
! #bytes in ax
.dvu:
pop bx ! return address
cmp ax,2
jne 1f
pop ax
xor dx,dx
pop cx
div cx
push ax
jmp bx
1:
cmp ax,4
jne 9f
pop ax
pop dx
pop si
pop di
push bx
push di
push si
push dx
push ax
call .dvu4
pop bx
push cx
push ax
jmp bx
9:
mov ax,EODDZ
push ax
jmp .trp