mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-12 20:29:49 +00:00
Fix reverse copy Y compare
This commit is contained in:
parent
ca10b04969
commit
e2bac643b8
@ -159,6 +159,7 @@ end
|
|||||||
;
|
;
|
||||||
; SET MEMORY TO VALUE
|
; SET MEMORY TO VALUE
|
||||||
; MEMSET(ADDR, SIZE, VALUE)
|
; MEMSET(ADDR, SIZE, VALUE)
|
||||||
|
; With optimizations from Peter Ferrie
|
||||||
;
|
;
|
||||||
asm memset
|
asm memset
|
||||||
LDY #$00
|
LDY #$00
|
||||||
@ -249,6 +250,7 @@ REVCPY ;CLC
|
|||||||
REVCPYLP LDA (SRC),Y
|
REVCPYLP LDA (SRC),Y
|
||||||
STA (DST),Y
|
STA (DST),Y
|
||||||
DEY
|
DEY
|
||||||
|
CPY #$FF
|
||||||
BNE +
|
BNE +
|
||||||
DEC DSTH
|
DEC DSTH
|
||||||
DEC SRCH
|
DEC SRCH
|
||||||
|
@ -184,6 +184,7 @@ end
|
|||||||
;
|
;
|
||||||
; SET MEMORY TO VALUE
|
; SET MEMORY TO VALUE
|
||||||
; MEMSET(ADDR, SIZE, VALUE)
|
; MEMSET(ADDR, SIZE, VALUE)
|
||||||
|
; With optimizations from Peter Ferrie
|
||||||
;
|
;
|
||||||
asm memset
|
asm memset
|
||||||
LDY #$00
|
LDY #$00
|
||||||
@ -274,6 +275,7 @@ REVCPY ;CLC
|
|||||||
REVCPYLP LDA (SRC),Y
|
REVCPYLP LDA (SRC),Y
|
||||||
STA (DST),Y
|
STA (DST),Y
|
||||||
DEY
|
DEY
|
||||||
|
CPY #$FF
|
||||||
BNE +
|
BNE +
|
||||||
DEC DSTH
|
DEC DSTH
|
||||||
DEC SRCH
|
DEC SRCH
|
||||||
|
@ -160,6 +160,7 @@ end
|
|||||||
;
|
;
|
||||||
; SET MEMORY TO VALUE
|
; SET MEMORY TO VALUE
|
||||||
; MEMSET(ADDR, SIZE, VALUE)
|
; MEMSET(ADDR, SIZE, VALUE)
|
||||||
|
; With optimizations from Peter Ferrie
|
||||||
;
|
;
|
||||||
asm memset
|
asm memset
|
||||||
LDY #$00
|
LDY #$00
|
||||||
@ -250,6 +251,7 @@ REVCPY ;CLC
|
|||||||
REVCPYLP LDA (SRC),Y
|
REVCPYLP LDA (SRC),Y
|
||||||
STA (DST),Y
|
STA (DST),Y
|
||||||
DEY
|
DEY
|
||||||
|
CPY #$FF
|
||||||
BNE +
|
BNE +
|
||||||
DEC DSTH
|
DEC DSTH
|
||||||
DEC SRCH
|
DEC SRCH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user