]> git.sur5r.net Git - cc65/commitdiff
Replaced reu commands with defined constants.
authorMarco van den Heuvel <blackystardust68@yahoo.com>
Tue, 6 Mar 2018 01:46:51 +0000 (17:46 -0800)
committerMarco van den Heuvel <blackystardust68@yahoo.com>
Tue, 6 Mar 2018 01:46:51 +0000 (17:46 -0800)
libsrc/c128/emd/c128-reu.s
libsrc/c64/emd/c64-reu.s

index 3b191c66637f7dc2df2182b06ace93f34ca08f2c..3ded00d67bbd82d17c006a1a516ea0b26389a433 100644 (file)
@@ -55,6 +55,8 @@ REU_TRIGGER     = $FF00                 ; REU command trigger
 OP_COPYFROM     = $ED
 OP_COPYTO       = $EC
 
+OP_COPYFROM_ALOAD = $B1
+OP_COPYTO_ALOAD   = $B0
 
 ; ------------------------------------------------------------------------
 ; Data.
@@ -99,7 +101,7 @@ INSTALL:
 loop:
         sty     window
         jsr     reu_size_check_common
-        ldx     #%10110000
+        ldx     #OP_COPYTO_ALOAD
         stx     REU_COMMAND
         dey
         cpy     #$FF
@@ -107,7 +109,7 @@ loop:
         iny
 size_loop:
         jsr     reu_size_check_common
-        ldx     #%10110001
+        ldx     #OP_COPYFROM_ALOAD
         stx     REU_COMMAND
         cpy     window
         bne     size_found
index 5bbed2f3a48fcc71bd0dea7142aebfcf5d1c8348..bf7bb4fb0cb6f02d732bb7553d4d2401e116b571 100644 (file)
@@ -55,6 +55,9 @@ REU_TRIGGER     = $FF00                 ; REU command trigger
 OP_COPYFROM     = $ED
 OP_COPYTO       = $EC
 
+OP_COPYFROM_ALOAD = $B1
+OP_COPYTO_ALOAD   = $B0
+
 
 ; ------------------------------------------------------------------------
 ; Data.
@@ -99,7 +102,7 @@ INSTALL:
 loop:
         sty     window
         jsr     reu_size_check_common
-        ldx     #%10110000
+        ldx     #OP_COPYTO_ALOAD
         stx     REU_COMMAND
         dey
         cpy     #$FF
@@ -107,7 +110,7 @@ loop:
         iny
 size_loop:
         jsr     reu_size_check_common
-        ldx     #%10110001
+        ldx     #OP_COPYFROM_ALOAD
         stx     REU_COMMAND
         cpy     window
         bne     size_found