Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reset:
- mov bx, 0
- mov dx, 0x8000
- mov ex, 0
- loop:
- mov ax, bx
- add ax, dx
- shr ax, 1
- add ex, 1
- send 3, ax
- wait cx
- cmp cx, 1
- ja toohigh
- jb toolow
- send 3, ex
- hlt
- jmp reset
- toohigh:
- mov dx, ax
- jmp loop
- toolow:
- mov bx, ax
- jmp loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement