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 .cmu4
|
|
|
|
|
1987-01-08 10:13:48 +00:00
|
|
|
.sect .text
|
1985-02-07 15:33:13 +00:00
|
|
|
.cmu4:
|
|
|
|
pop bx ! return address
|
|
|
|
pop cx
|
|
|
|
pop dx
|
1987-06-09 10:22:50 +00:00
|
|
|
pop ax
|
|
|
|
push si
|
|
|
|
mov si,sp
|
|
|
|
xchg bx,2(si)
|
|
|
|
pop si
|
|
|
|
cmp bx,dx
|
1985-02-07 15:33:13 +00:00
|
|
|
ja 1f
|
|
|
|
jb 2f
|
1987-06-09 10:22:50 +00:00
|
|
|
cmp ax,cx
|
1985-02-07 15:33:13 +00:00
|
|
|
ja 1f
|
|
|
|
je 3f
|
|
|
|
2:
|
1987-06-09 10:22:50 +00:00
|
|
|
mov ax,-1
|
|
|
|
ret
|
1985-02-07 15:33:13 +00:00
|
|
|
3:
|
1987-06-09 10:22:50 +00:00
|
|
|
xor ax,ax
|
|
|
|
ret
|
1985-02-07 15:33:13 +00:00
|
|
|
1:
|
1987-06-09 10:22:50 +00:00
|
|
|
mov ax,1
|
1985-02-07 15:33:13 +00:00
|
|
|
ret
|