alignment fixes

This commit is contained in:
xlar54
2024-06-19 23:50:54 -05:00
parent 6098ac2788
commit 3b494ad6f2

View File

@@ -253,15 +253,13 @@ CLEAR:
; set cache writes ; set cache writes
lda #$40 lda #$40
tsb $9F29 ;VERA_FX_CTRL tsb VERA::DISP::VIDEO ; VERA_FX_CTRL when DCSEL=2
; set FX cache to all zeroes ; set FX cache to all zeroes
lda #(6 << 1) lda #(6 << 1)
sta VERA::CTRL sta VERA::CTRL
lda #$00 lda #$00
ahead:
sta VERA::DISP::VIDEO sta VERA::DISP::VIDEO
sta VERA::DISP::HSCALE sta VERA::DISP::HSCALE
sta VERA::DISP::VSCALE sta VERA::DISP::VSCALE
@@ -275,18 +273,18 @@ ahead:
sta VERA::ADDR + 2 sta VERA::ADDR + 2
ldy #$F0 ldy #$F0
blank_outer: @blank_outer:
ldx #$0A ldx #$0A
blank_loop: @blank_loop:
.repeat 8 .repeat 8
stz VERA::DATA0 stz VERA::DATA0
.endrep .endrep
dex dex
bne blank_loop bne @blank_loop
dey dey
bne blank_outer bne @blank_outer
; set up DCSEL=2 ; set up DCSEL=2
lda #(2 << 1) lda #(2 << 1)
@@ -447,7 +445,7 @@ SETPIXEL:
sta VERA::DATA0 ; Store back the modified byte sta VERA::DATA0 ; Store back the modified byte
rts rts
@ahead: @ahead:
; if BITMASK = $FF, black is line color ; if BITMASK = $FF, black is line color
lda VERA::DATA0 ; Load the byte at memory address lda VERA::DATA0 ; Load the byte at memory address
and bitMasks2,X ; OR with the bit mask and bitMasks2,X ; OR with the bit mask
@@ -482,7 +480,7 @@ GETPIXEL:
lda #$00 lda #$00
rts rts
@ahead: @ahead:
ldx #$00 ldx #$00
lda #$01 lda #$01
rts rts