Skip to content

Commit

Permalink
Fix force blank using the wrong color
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydr8gon committed Dec 21, 2024
1 parent 3603e79 commit 849f035
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ N64_ASFLAGS = -mtune=vr4300 -march=vr4300 -Wa,--fatal-warnings
N64_RSPASFLAGS = -march=mips1 -mabi=32 -Wa,--fatal-warnings
N64_LDFLAGS = -L$(N64_LIBDIR) -Tn64.ld --gc-sections
N64_TOOLFLAGS = --title $(N64_ROM_TITLE)
N64_ED64ROMCONFIGFLAGS = --savetype $(N64_ROM_SAVETYPE)
N64_ED64ROMCONFIGFLAGS = --savetype $(N64_ROM_SAVETYPE) --regionfree

COMMA := ,

Expand Down
1 change: 1 addition & 0 deletions src/main.S
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ pi_wait1:
la a1, rsp_main_data_start
jal rsp_upload
li a0, 0x0000 // DMEM address
sw zero, 0xA4080000 // SP_PC

// Enable VI interrupts and start execution
li t0, 0x00000595 // Set VI mask
Expand Down
4 changes: 2 additions & 2 deletions src/rsp_main.S
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,12 @@ oam_skip:
lbu t4, STAT_FLAGS
andi t4, t4, 0x80
beqz t4, not_blank
li s0, 0
lhu s0, SUB_COLOR
b fill_backdrop
li s0, 0

not_blank:
// Check if the sub screen color should be applied to backdrop pixels
lhu s0, SUB_COLOR
lbu t0, CGADSUB
beqz s0, fill_main
andi t0, t0, 0x20 // Backdrop math
Expand Down

0 comments on commit 849f035

Please sign in to comment.