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 .rmi
|
|
|
|
|
|
|
|
! #bytes in ax
|
|
|
|
.rmi:
|
|
|
|
pop bx ! return address
|
|
|
|
cmp ax,2
|
|
|
|
jne 1f
|
|
|
|
pop ax
|
|
|
|
cwd
|
|
|
|
pop cx
|
|
|
|
idiv cx
|
|
|
|
push dx
|
|
|
|
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
|
1987-01-08 10:13:48 +00:00
|
|
|
.extern .rmi4
|
1985-02-07 15:33:13 +00:00
|
|
|
call .rmi4
|
1987-06-09 10:22:50 +00:00
|
|
|
pop bx
|
1985-02-07 15:33:13 +00:00
|
|
|
push dx
|
1987-06-09 10:22:50 +00:00
|
|
|
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
|