skyfloogle / red-viper

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

Account for HOFSTR hardware flaw in h-bias worlds #45

Closed pizzarollsroyce closed 3 months ago

pizzarollsroyce commented 3 months ago

VB hardware will OR the eye "offset" with the param_base instead of adding it to compute the h-bias offset, which results in incorrect behavior if the param_base isn't word-aligned. See http://perfectkiosk.net/stsvb.html#vip_worlds_h_bias

Another selfish fix for Elevated Speed, which exploits this flaw to reduce writes to VRAM

This commit is an alternative to https://github.com/skyfloogle/red-viper/pull/43

skyfloogle commented 3 months ago

see #43