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 .com
|
|
|
|
|
|
|
|
! #bytes in cx
|
1987-01-08 10:13:48 +00:00
|
|
|
.sect .text
|
1985-02-07 15:33:13 +00:00
|
|
|
.com:
|
1987-06-09 10:22:50 +00:00
|
|
|
mov bx,sp
|
|
|
|
add bx,2
|
1985-02-07 15:33:13 +00:00
|
|
|
sar cx,1
|
|
|
|
1:
|
1987-06-09 10:22:50 +00:00
|
|
|
not (bx)
|
|
|
|
inc bx
|
|
|
|
inc bx
|
1985-02-07 15:33:13 +00:00
|
|
|
loop 1b
|
1987-06-09 10:22:50 +00:00
|
|
|
ret
|