15 lines
124 B
ArmAsm
Executable file
15 lines
124 B
ArmAsm
Executable file
.define .com
|
|
|
|
! #bytes in cx
|
|
.text
|
|
.com:
|
|
mov bx,sp
|
|
inc bx
|
|
inc bx
|
|
sar cx,#1
|
|
1:
|
|
not (bx)
|
|
inc bx
|
|
inc bx
|
|
loop 1b
|
|
ret
|