From b78328057722e68df7d110056af016abbe9c9f7e Mon Sep 17 00:00:00 2001 From: Marco van den Heuvel Date: Mon, 5 Mar 2018 17:46:51 -0800 Subject: [PATCH] Replaced reu commands with defined constants. --- libsrc/c128/emd/c128-reu.s | 6 ++++-- libsrc/c64/emd/c64-reu.s | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libsrc/c128/emd/c128-reu.s b/libsrc/c128/emd/c128-reu.s index 3b191c666..3ded00d67 100644 --- a/libsrc/c128/emd/c128-reu.s +++ b/libsrc/c128/emd/c128-reu.s @@ -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 diff --git a/libsrc/c64/emd/c64-reu.s b/libsrc/c64/emd/c64-reu.s index 5bbed2f3a..bf7bb4fb0 100644 --- a/libsrc/c64/emd/c64-reu.s +++ b/libsrc/c64/emd/c64-reu.s @@ -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 -- 2.39.5