ack/mach/i86/libem/cuu.s

39 lines
588 B
ArmAsm
Raw 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 .ciu
.define .cui
.define .cuu
1987-01-08 10:13:48 +00:00
.sect .text
1985-02-07 15:33:13 +00:00
.ciu:
.cui:
.cuu:
pop bx ! return address
1985-02-07 15:33:13 +00:00
! pop cx, dest. size
! pop dx, source size
1985-02-07 15:33:13 +00:00
! ax is low word of source
cmp dx,cx
1985-02-07 15:33:13 +00:00
je 8f
cmp dx,2
1985-02-07 15:33:13 +00:00
je 1f
cmp dx,4
1985-02-07 15:33:13 +00:00
jne 9f
cmp cx,2
jne 9f
pop dx
8:
jmp bx
1985-02-07 15:33:13 +00:00
1:
cmp cx,4
jne 9f
xor dx,dx
push dx
jmp bx
1985-02-07 15:33:13 +00:00
9:
push ax ! to help debugging ?
1987-01-08 10:13:48 +00:00
.extern EILLINS
.extern .fat
1985-02-07 15:33:13 +00:00
mov ax,EILLINS
push ax
jmp .fat
jmp bx