1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-01-22 23:29:55 +00:00

Slight variation on Peter Ferrie's setmem()

This commit is contained in:
David Schmenk 2014-06-15 19:16:37 -07:00
parent c277fbf228
commit ca10b04969
3 changed files with 18 additions and 21 deletions

View File

@ -168,21 +168,20 @@ asm memset
STA DSTH
INC ESTKL+1,X
INC ESTKH+1,X
- CLC
SETMLP DEC ESTKL+1,X
SETMLPL CLC
LDA ESTKL,X
SETMLPH DEC ESTKL+1,X
BNE +
DEC ESTKH+1,X
BEQ SETMEX
+ LDA ESTKL,X
BCC +
LDA ESTKH,X
+ STA (DST),Y
INY
BNE +
INC DSTH
+ BCS -
+ BCS SETMLPL
SEC
BCS SETMLP
LDA ESTKH,X
BCS SETMLPH
SETMEX INX
INX
RTS

View File

@ -193,21 +193,20 @@ asm memset
STA DSTH
INC ESTKL+1,X
INC ESTKH+1,X
- CLC
SETMLP DEC ESTKL+1,X
SETMLPL CLC
LDA ESTKL,X
SETMLPH DEC ESTKL+1,X
BNE +
DEC ESTKH+1,X
BEQ SETMEX
+ LDA ESTKL,X
BCC +
LDA ESTKH,X
+ STA (DST),Y
INY
BNE +
INC DSTH
+ BCS -
+ BCS SETMLPL
SEC
BCS SETMLP
LDA ESTKH,X
BCS SETMLPH
SETMEX INX
INX
RTS

View File

@ -169,21 +169,20 @@ asm memset
STA DSTH
INC ESTKL+1,X
INC ESTKH+1,X
- CLC
SETMLP DEC ESTKL+1,X
SETMLPL CLC
LDA ESTKL,X
SETMLPH DEC ESTKL+1,X
BNE +
DEC ESTKH+1,X
BEQ SETMEX
+ LDA ESTKL,X
BCC +
LDA ESTKH,X
+ STA (DST),Y
INY
BNE +
INC DSTH
+ BCS -
+ BCS SETMLPL
SEC
BCS SETMLP
LDA ESTKH,X
BCS SETMLPH
SETMEX INX
INX
RTS