dingusdev / dingusppc

An experimental emulator
GNU General Public License v3.0
200 stars 21 forks source link

Fix emulation of doz, dozi, and nabs POWER instructions #67

Closed mihaip closed 7 months ago

mihaip commented 7 months ago

doz and dozi were storing the result into the wrong register.

nabs was not taking into account two's complement storage of numbers and was just setting the signed bit.

These two instructions are used in the implementation of text measurement in native QuickDraw on 7.1.2/the PDM ROM, and the incorrect values were resulting in nothing being rendered. With the fix text appears when booting from the 7.1.2 CD.

mihaip commented 7 months ago
image