bcasm/examples/adult.asm

14 lines
160 B
NASM

;enter your age and see if you're adult
MOV INP A
;is A inferior to 18?
MOV A ANS
SUB 18
JLZ M
;if no adult
MOV 1 ANS
JMP E
;if yes minor
LBL M
MOV 0 ANS
LBL E