1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-12-24 15:29:29 +00:00

Fix reverse copy Y compare

This commit is contained in:
David Schmenk 2014-06-15 21:36:14 -07:00
parent ca10b04969
commit e2bac643b8
3 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,7 @@ end
;
; SET MEMORY TO VALUE
; MEMSET(ADDR, SIZE, VALUE)
; With optimizations from Peter Ferrie
;
asm memset
LDY #$00
@ -249,6 +250,7 @@ REVCPY ;CLC
REVCPYLP LDA (SRC),Y
STA (DST),Y
DEY
CPY #$FF
BNE +
DEC DSTH
DEC SRCH

View File

@ -184,6 +184,7 @@ end
;
; SET MEMORY TO VALUE
; MEMSET(ADDR, SIZE, VALUE)
; With optimizations from Peter Ferrie
;
asm memset
LDY #$00
@ -274,6 +275,7 @@ REVCPY ;CLC
REVCPYLP LDA (SRC),Y
STA (DST),Y
DEY
CPY #$FF
BNE +
DEC DSTH
DEC SRCH

View File

@ -160,6 +160,7 @@ end
;
; SET MEMORY TO VALUE
; MEMSET(ADDR, SIZE, VALUE)
; With optimizations from Peter Ferrie
;
asm memset
LDY #$00
@ -250,6 +251,7 @@ REVCPY ;CLC
REVCPYLP LDA (SRC),Y
STA (DST),Y
DEY
CPY #$FF
BNE +
DEC DSTH
DEC SRCH