- #1
naja
- 3
- 0
I am asking user to enter a number if user hits enter key instead of entering a value then i need to exit the program. see code below
Code:
; i put the value into eax
cmp AL,0 ;i compare is al reg is empty
je exitProgram
; some instructions
exitProgram:
Invoke ExitProcess,0
Public _start
END