1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-01-10 06:30:41 +00:00

Merge pull request #28 from peterferrie/master

a few size optimisations
This commit is contained in:
David Schmenk 2017-10-11 06:36:50 -07:00 committed by GitHub
commit 30cf783037
4 changed files with 16 additions and 21 deletions

View File

@ -125,17 +125,15 @@ asm grplot
INY
LDA (GRSCRN),Y
STA DSTH
LDY ESTKL+1,X
LDA (DST),Y
EOR GRCLR
STA TMPL
LDA #$FF
ADC #$00
EOR #$0F
TAY
AND GRCLR
STA TMPL
TYA
EOR #$FF
LDY ESTKL+1,X
AND (DST),Y
ORA TMPL
AND TMPL
EOR GRCLR
STA (DST),Y
LDY IPY
INX

View File

@ -446,12 +446,10 @@ asm _dgrTileTile
STA ESTKL+4,X
DEC ESTKL+1,X ; DEC STRLEN
BNE -
+ INX
INX
INX
INX
INX
INX
+ TXA
CLC
ADC #6
TAX
RTS
end
//

View File

@ -66,7 +66,7 @@ asm fbrSwap(saveVM, restoreVM)
STA ESTK,Y
DEY
BPL -
+ TXA
TXA
TAY
- LDA $100,Y
STA (DST),Y

View File

@ -17,15 +17,14 @@ export asm tone2(pitch1, pitch2, duration)
INY
+ STA DSTL
STY DSTH
LDA ESTKL+1,X
STA TMPL
LDY ESTKL+1,X
STY TMPL
LDA ESTKL+2,X
TAX
CMP TMPL
BNE +
LDA #$00
+ STA TMPH
LDY TMPL
LDX TMPH
LDX #$00
+ STX TMPH
LDA #$00
PHP
SEI