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 .cii
|
|
|
|
|
1987-01-08 10:13:48 +00:00
|
|
|
.sect .text
|
1985-02-07 15:33:13 +00:00
|
|
|
.cii:
|
1987-06-09 10:22:50 +00:00
|
|
|
pop bx ! return address
|
1985-02-07 15:33:13 +00:00
|
|
|
! pop cx, dest. size
|
1987-06-09 10:22:50 +00:00
|
|
|
! pop dx, src. size
|
1985-02-07 15:33:13 +00:00
|
|
|
! ax is first word of source
|
1987-06-09 10:22:50 +00:00
|
|
|
cmp dx,1
|
1987-04-13 12:52:38 +00:00
|
|
|
jne 2f
|
|
|
|
cbw
|
1987-06-09 10:22:50 +00:00
|
|
|
mov dx,2
|
1987-04-13 12:52:38 +00:00
|
|
|
2:
|
1987-06-09 10:22:50 +00:00
|
|
|
cmp dx,cx
|
1985-02-07 15:33:13 +00:00
|
|
|
je 8f
|
1987-06-09 10:22:50 +00:00
|
|
|
cmp dx,2
|
1985-02-07 15:33:13 +00:00
|
|
|
je 1f
|
1987-06-09 10:22:50 +00:00
|
|
|
cmp dx,4
|
1987-04-13 12:52:38 +00:00
|
|
|
jne 9f
|
1985-02-07 15:33:13 +00:00
|
|
|
cmp cx,2
|
|
|
|
jne 9f
|
|
|
|
pop dx
|
|
|
|
8:
|
1987-06-09 10:22:50 +00:00
|
|
|
jmp bx
|
1985-02-07 15:33:13 +00:00
|
|
|
1:
|
|
|
|
cmp cx,4
|
|
|
|
jne 9f
|
|
|
|
cwd
|
|
|
|
push dx
|
1987-06-09 10:22:50 +00:00
|
|
|
jmp bx
|
1985-02-07 15:33:13 +00:00
|
|
|
9:
|
|
|
|
push ax ! push low source
|
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
|