mirror of
https://github.com/cc65/cc65.git
synced 2025-03-03 09:32:33 +00:00
Replaced reu commands with defined constants.
This commit is contained in:
parent
1539acafc1
commit
b783280577
@ -55,6 +55,8 @@ REU_TRIGGER = $FF00 ; REU command trigger
|
|||||||
OP_COPYFROM = $ED
|
OP_COPYFROM = $ED
|
||||||
OP_COPYTO = $EC
|
OP_COPYTO = $EC
|
||||||
|
|
||||||
|
OP_COPYFROM_ALOAD = $B1
|
||||||
|
OP_COPYTO_ALOAD = $B0
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Data.
|
; Data.
|
||||||
@ -99,7 +101,7 @@ INSTALL:
|
|||||||
loop:
|
loop:
|
||||||
sty window
|
sty window
|
||||||
jsr reu_size_check_common
|
jsr reu_size_check_common
|
||||||
ldx #%10110000
|
ldx #OP_COPYTO_ALOAD
|
||||||
stx REU_COMMAND
|
stx REU_COMMAND
|
||||||
dey
|
dey
|
||||||
cpy #$FF
|
cpy #$FF
|
||||||
@ -107,7 +109,7 @@ loop:
|
|||||||
iny
|
iny
|
||||||
size_loop:
|
size_loop:
|
||||||
jsr reu_size_check_common
|
jsr reu_size_check_common
|
||||||
ldx #%10110001
|
ldx #OP_COPYFROM_ALOAD
|
||||||
stx REU_COMMAND
|
stx REU_COMMAND
|
||||||
cpy window
|
cpy window
|
||||||
bne size_found
|
bne size_found
|
||||||
|
@ -55,6 +55,9 @@ REU_TRIGGER = $FF00 ; REU command trigger
|
|||||||
OP_COPYFROM = $ED
|
OP_COPYFROM = $ED
|
||||||
OP_COPYTO = $EC
|
OP_COPYTO = $EC
|
||||||
|
|
||||||
|
OP_COPYFROM_ALOAD = $B1
|
||||||
|
OP_COPYTO_ALOAD = $B0
|
||||||
|
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; Data.
|
; Data.
|
||||||
@ -99,7 +102,7 @@ INSTALL:
|
|||||||
loop:
|
loop:
|
||||||
sty window
|
sty window
|
||||||
jsr reu_size_check_common
|
jsr reu_size_check_common
|
||||||
ldx #%10110000
|
ldx #OP_COPYTO_ALOAD
|
||||||
stx REU_COMMAND
|
stx REU_COMMAND
|
||||||
dey
|
dey
|
||||||
cpy #$FF
|
cpy #$FF
|
||||||
@ -107,7 +110,7 @@ loop:
|
|||||||
iny
|
iny
|
||||||
size_loop:
|
size_loop:
|
||||||
jsr reu_size_check_common
|
jsr reu_size_check_common
|
||||||
ldx #%10110001
|
ldx #OP_COPYFROM_ALOAD
|
||||||
stx REU_COMMAND
|
stx REU_COMMAND
|
||||||
cpy window
|
cpy window
|
||||||
bne size_found
|
bne size_found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user