Skip to content

Commit

Permalink
Merge pull request pce-devel#69 from jbrandwood/master
Browse files Browse the repository at this point in the history
More HuCC optimizations.
  • Loading branch information
jbrandwood authored Jan 24, 2025
2 parents fabe369 + f68e68f commit 134ee90
Show file tree
Hide file tree
Showing 12 changed files with 2,514 additions and 749 deletions.
1,283 changes: 1,131 additions & 152 deletions include/hucc/hucc-codegen.asm

Large diffs are not rendered by default.

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
Loading

0 comments on commit 134ee90

Please sign in to comment.