From acd4bfe3164644f717d2f041025f98c28a81b6b5 Mon Sep 17 00:00:00 2001 From: fumiama Date: Tue, 13 Apr 2021 18:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=AE=A1=E7=AE=97=E5=88=86?= =?UTF-8?q?=E6=95=B0=E4=B8=BA=E6=97=B6=E9=97=B4=EF=BC=8C=E6=9B=B4=E6=94=B9?= =?UTF-8?q?SCORE=E4=B8=BASNAKE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calcscore.asm | 4 +++- printscore.asm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/calcscore.asm b/calcscore.asm index 03c2d0c..883ab42 100644 --- a/calcscore.asm +++ b/calcscore.asm @@ -4,5 +4,7 @@ calcscore: .scope inc s - rts + bne + + inc s+1 +* rts .scend \ No newline at end of file diff --git a/printscore.asm b/printscore.asm index 732ca8b..6c8acba 100644 --- a/printscore.asm +++ b/printscore.asm @@ -21,4 +21,4 @@ printscore: rts .scend -score_str: .byte "SCORE",0 \ No newline at end of file +score_str: .byte "SNAKE",0 \ No newline at end of file