bcasm/examples/adult.asm

14 lines
160 B
NASM
Raw Normal View History

2021-08-20 01:46:17 +02:00
;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