Skip to content

Commit

Permalink
Dis5900asm: Fix an out of bounds access on invalid pmfhl formats
Browse files Browse the repository at this point in the history
  • Loading branch information
F0bes committed Oct 30, 2024
1 parent eea1d57 commit 943fbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/DebugTools/DisR5900asm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ void MTSAH( std::string& output ) { _sap("mtsah\t%s, 0x%04X") GPR_REG[DECODE_R


//***************************SPECIAL 2 CPU OPCODES*******************
const char* pmfhl_sub[] = {"lw", "uw", "slw", "lh", "sh", "??", "??"};
const char* pmfhl_sub[] = {"lw", "uw", "slw", "lh", "sh", "??", "??", "??"};

void MADD( std::string& output ) { _sap("madd\t%s, %s %s") GPR_REG[DECODE_RD],GPR_REG[DECODE_RS], GPR_REG[DECODE_RT]); }
void MADDU( std::string& output ) { _sap("maddu\t%s, %s %s") GPR_REG[DECODE_RD],GPR_REG[DECODE_RS], GPR_REG[DECODE_RT]);}
Expand Down

0 comments on commit 943fbd8

Please sign in to comment.