Skip to content

Commit

Permalink
ensure validity of BKCOL and FRMCYC
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfloogle committed Nov 24, 2024
1 parent 1308650 commit e6347c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/common/v810_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ void vipcreg_whword(WORD addr, HWORD data) {
break;
case 0x0005F82E: //FRMCYC
//~ dtprintf(8,ferr,"\nWrite HWORD VIP FRMCYC [%08x]:%04x ",addr,data);
tVIPREG.FRMCYC = data;
tVIPREG.FRMCYC = data & 0xf;
break;
case 0x0005F830: //CTA
//~ dtprintf(8,ferr,"\nWrite HWORD VIP CTA [%08x]:%04x ",addr,data);
Expand Down Expand Up @@ -847,7 +847,7 @@ void vipcreg_whword(WORD addr, HWORD data) {
//~ dtprintf(1,ferr,"\nWrite HWORD VIP BKCOL [%08x]:%04x ",addr,data);
tDSPCACHE.BgmPALMod = 1; //Invalidate Pallet Cache
tDSPCACHE.ObjPALMod = 1;
tVIPREG.BKCOL = data;
tVIPREG.BKCOL = data & 3;
break;
default:
//~ dtprintf(0,ferr,"\nWrite HWORD VIP error [%08x]:%04x ",addr,data);
Expand Down

0 comments on commit e6347c1

Please sign in to comment.