This commit is contained in:
4am 2019-10-25 22:11:18 -04:00
parent 920d3c4f4d
commit dc852806c6

View File

@ -29,33 +29,6 @@
bne -
}
; .hgrlo, .hgr1hi, .hgr2hi will each be filled with $C0 bytes
!macro BUILD_HGR12_LOOKUP_TABLES .hgrlo, .hgr1hi, .hgr2hi {
ldx #0
- txa
and #$F8
bpl +
ora #5
+ asl
bpl +
ora #5
+ asl
asl
sta .hgrlo,x
txa
and #7
rol
asl .hgrlo,x
rol
ora #$20
sta .hgr1hi,x
eor #$60
sta .hgr2hi,x
inx
cpx #$C0
bne -
}
; .hgrlomirror, .hgr1himirror will each be filled with $C0 bytes
!macro BUILD_HGR_MIRROR_LOOKUP_TABLES .hgrlomirror, .hgr1himirror {
ldx #$C0
@ -82,34 +55,6 @@
bne -
}
; .hgrlomirror, .hgr1himirror, .hgr2himirror will each be filled with $C0 bytes
!macro BUILD_HGR_MIRROR_LOOKUP_TABLES .hgrlomirror, .hgr1himirror, .hgr2mirror {
ldx #$C0
ldy #0
- tya
and #$F8
bpl +
ora #5
+ asl
bpl +
ora #5
+ asl
asl
sta .hgrlomirror-1,x
tya
and #7
rol
asl .hgrlomirror-1,x
rol
ora #$20
sta .hgr1himirror-1,x
eor #$60
sta .hgr2himirror-1,x
iny
dex
bne -
}
!macro HGR_CALC {
asl
tax