mirror of https://git.sr.ht/~kikoodx/bcasm
24 lines
248 B
NASM
24 lines
248 B
NASM
|
;dumbasm clicker
|
||
|
MOV 0 S
|
||
|
;draw position
|
||
|
MOV 1 X
|
||
|
MOV 1 Y
|
||
|
MOV 0 ANS
|
||
|
;main loop
|
||
|
LBL A
|
||
|
; display score
|
||
|
LOC
|
||
|
; wait for release
|
||
|
LBL R
|
||
|
MOV GTK ANS
|
||
|
JEZ R
|
||
|
; wait for press
|
||
|
LBL P
|
||
|
MOV GTK ANS
|
||
|
JNZ P
|
||
|
; increase score
|
||
|
MOV S ANS
|
||
|
ADD 1
|
||
|
MOV ANS S
|
||
|
JMP A
|