mirror of
https://github.com/a2-4am/4cade.git
synced 2025-03-08 14:31:29 +00:00
.
This commit is contained in:
parent
920d3c4f4d
commit
dc852806c6
@ -29,33 +29,6 @@
|
|||||||
bne -
|
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
|
; .hgrlomirror, .hgr1himirror will each be filled with $C0 bytes
|
||||||
!macro BUILD_HGR_MIRROR_LOOKUP_TABLES .hgrlomirror, .hgr1himirror {
|
!macro BUILD_HGR_MIRROR_LOOKUP_TABLES .hgrlomirror, .hgr1himirror {
|
||||||
ldx #$C0
|
ldx #$C0
|
||||||
@ -82,34 +55,6 @@
|
|||||||
bne -
|
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 {
|
!macro HGR_CALC {
|
||||||
asl
|
asl
|
||||||
tax
|
tax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user