Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PROC printMyShit
- push ax bx cx di si
- ;bufferWrite db 100 dup (?)
- goHere:
- ;push ax
- mov ax, offset wait_name
- call compareToWait
- jne exit
- jmp exit
- writeLock:
- mov ah, 9
- push dx
- mov dx, offset lockHex
- int 21h
- mov dx, offset spaces
- int 21h
- mov dx, offset lock_name
- int 21h
- mov dx, offset newLine
- int 21h
- jmp exit
- writeHlt:
- mov ah, 9
- push dx
- mov dx, offset hltHex
- int 21h
- mov dx, offset spaces
- int 21h
- mov dx, offset hlt_name
- int 21h
- mov dx, offset newLine
- int 21h
- jmp exit
- exit:
- pop si di cx bx ax
- ret
- printMyShit ENDP
- PROC compareToWait
- mov cx, 4
- ;lea di, dx
- lea si, wait_name
- waitLoop:
- cmp [dx],[si]
- jne notEqualsWait
- loop waitLoop
- call writeWait
- notEqualsWait:
- ret
- compareToWait ENDP
- PROC writeWait
- writeWait:
- mov ah, 9
- push dx
- mov dx, offset waitHex
- int 21h
- mov dx, offset spaces
- int 21h
- mov dx, offset wait_name
- int 21h
- mov dx, offset newLine
- int 21h
- ret
- writeWait ENDP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement