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