changeset 74:c29030b5e4b4

program is correctly stored. fix d09 ror bug
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 06 Aug 2018 17:36:20 +0900
parents ae26a881ac7a
children 7aad8084a784
files game09/game09.asm src/d09.c
diffstat 2 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/game09/game09.asm	Mon Aug 06 17:07:06 2018 +0900
+++ b/game09/game09.asm	Mon Aug 06 17:36:20 2018 +0900
@@ -496,8 +496,8 @@
         ANDCC       #$FE
         BRA         LC353
 LC351   ORCC        #$01
-LC353   ROR         <$83
-        ROR         <$82
+LC353   ROL         <$83
+        ROL         <$82
         DEC         ,S
         BEQ         LC361
         LSR         ,U
@@ -685,7 +685,7 @@
         CLR         <$4F
         ASRA 
         RORB 
-        ROR         <$4F
+        ROL         <$4F
         LEAU        +$02,U
         RTS  
 LC4D4   INC         <$8D
@@ -717,12 +717,8 @@
         LDB         #$20
         LBSR        LC412
         LDX         <$42
-        PSHS        Y,D
-        LDY         <DPWORK
-        LEAY        $95,Y
         STY         ,S
-        CMPX        ,S
-        PULS        Y,D
+        CMPX        <linetop
         BNE         LC519
         LBSR        LC165
         BRA         LC51C
--- a/src/d09.c	Mon Aug 06 17:07:06 2018 +0900
+++ b/src/d09.c	Mon Aug 06 17:36:20 2018 +0900
@@ -101,7 +101,7 @@
   { "ROR  ",  6,  2,	D_Direct,    NULL },	 /* 0x06 */
   { "ASR  ",  6,  2,	D_Direct,    NULL },	 /* 0x07 */
   { "LSL  ",  6,  2,	D_Direct,    NULL },	 /* 0x08 */
-  { "ROR  ",  6,  2,	D_Direct,    NULL },	 /* 0x09 */
+  { "ROL  ",  6,  2,	D_Direct,    NULL },	 /* 0x09 */
   { "DEC  ",  6,  2,	D_Direct,    NULL },	 /* 0x0a */
   { "?????",  0,  1,	D_Illegal,   NULL },	 /* 0x0b */
   { "INC  ",  6,  2,	D_Direct,    NULL },	 /* 0x0c */