Press O to Game Over and small bugfix

This commit is contained in:
Pecusx
2022-08-12 13:40:04 +02:00
parent 2820f66467
commit 710570ae8a
5 changed files with 35 additions and 24 deletions
+11 -2
View File
@@ -1191,11 +1191,20 @@ notpressed
lda kbcode
and #%10111111 ; SHIFT elimination
cmp #$08 ; O
bne @+
jsr AreYouSure
bit escFlag
bpl notpressed
;---O pressed-quit game to game over screen---
mva #$40 escFlag
rts
@
cmp #28 ; ESC
bne @+
jsr AreYouSure
lda escFlag
beq notpressed
bit escFlag
bpl notpressed
;---esc pressed-quit game---
rts