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 .sri
|
|
|
|
|
|
|
|
! #bytes in ax
|
|
|
|
.sri:
|
|
|
|
pop dx ! return address
|
|
|
|
cmp ax,2
|
|
|
|
jne 1f
|
|
|
|
pop ax
|
|
|
|
pop cx
|
|
|
|
sar ax,cl
|
|
|
|
push ax
|
|
|
|
jmp dx
|
|
|
|
1:
|
|
|
|
cmp ax,4
|
|
|
|
jne 9f
|
|
|
|
pop cx
|
|
|
|
jcxz 2f
|
|
|
|
pop ax
|
|
|
|
pop bx
|
|
|
|
3:
|
|
|
|
sar bx,1
|
|
|
|
rcr ax,1
|
|
|
|
loop 3b
|
|
|
|
push bx
|
|
|
|
push ax
|
|
|
|
2:
|
|
|
|
jmp dx
|
|
|
|
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 dx
|
1985-02-07 15:33:13 +00:00
|
|
|
jmp .trp
|