ack/mach/i86/libem/mli.s

43 lines
548 B
ArmAsm
Raw Permalink Normal View History

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 .mli
! #bytes in ax
.mli:
pop bx ! return address
cmp ax,2
jne 1f
pop ax
pop cx
mul cx
push ax
jmp bx
1:
cmp ax,4
jne 9f
push bx
mov cx,bx
mov bx,sp
mov ax,2(bx)
mov (bx),ax
mov ax,4(bx)
mov 2(bx),ax
mov ax,6(bx)
mov 4(bx),ax
mov ax,8(bx)
mov 6(bx),ax
mov 8(bx),cx
pop ax
pop dx
1987-06-09 10:35:22 +00:00
call .mli4
pop bx
push dx
push ax
jmp bx
1985-02-07 15:33:13 +00:00
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