asar
asar copied to clipboard
BBC/BBS opcode in SPC700 architecture is not reporting an out of range error when branch distance goes too far
trafficstars
Accidentally ran into this while working on my SPC700 code thanks to me looking up the raw hex data. There appears to be no overflow checking in the BBC/BBS opcodes at all branching distance-wise.
Here's the exact lines that has the fault: https://github.com/RPGHacker/asar/blob/3553e3abca02c672d96f956ce87edb39545d7652/src/asar/arch-spc700.cpp#L359-L367