skyfloogle / red-viper

A Virtual Boy emulator for the 3DS
764 stars 17 forks source link

Mask register operands for shift operations #41

Closed pizzarollsroyce closed 4 months ago

pizzarollsroyce commented 4 months ago

Register operands are masked to 0x1F prior to being applied, see http://perfectkiosk.net/stsvb.html#cpu_bitwise

This corrects that issue, thus allowing previously unplayable homebrew to run (and probably fixing some issues in commercial games as well).