Skip to content

Commit

Permalink
A tiny improvement to vdc.asm's screen clearing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrandwood committed Jan 17, 2025
1 parent 0d00472 commit c56247d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/hucc/vdc.asm
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,11 @@ clear_vram_x: bsr clear_bat_x ; Clear the BAT.
lsr a

; cly ; Clear the rest of VRAM.
.clr_loop: pha
stz VDC_DL, x
.clr_pair: stz VDC_DH, x ; Seperate writes to minimize
.clr_loop: stz VDC_DH, x ; Seperate writes to minimize
dey ; VDC MWR penalty.
stz VDC_DH, x
bne .clr_pair
pla
bne .clr_loop
dec a
bne .clr_loop

Expand Down

0 comments on commit c56247d

Please sign in to comment.