From d1505786452d5c34bbcf7314df58b961f5f54040 Mon Sep 17 00:00:00 2001 From: dmatviichuk Date: Mon, 7 Jun 2021 19:37:04 +0200 Subject: [PATCH] XO change --- main.s | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/main.s b/main.s index 51d48b6..178c4d5 100644 --- a/main.s +++ b/main.s @@ -10,6 +10,7 @@ .byte $00 .byte $00, $00, $00, $00, $00 ; filler bytes .segment "ZEROPAGE" + debug: .res 1 gameLoaded: .res 1 ; for disabling start after title screen menuBg: .res 2 gameBg: .res 2 @@ -362,12 +363,22 @@ cmp #$00 bne :+ rts - : lda turn - ;cmp #$00 - ;bne :+ + : ldx turn + cpx #$00 + bne :+ + inx + stx turn + ;stx debug jsr DrawX jsr LoadGrid ; load defaults rts + : dex + stx turn + ;stx debug + jsr DrawO + jsr LoadGrid ; load defaults + rts + PressB: lda gameLoaded