emu-rs / rustual-boy

Rustual Boy - A Virtual Boy emulator.
https://rustualboy.com/
Apache License 2.0
232 stars 30 forks source link

Fix display of opcodes that use a signed imm5 in debugger #30

Closed jwestfall69 closed 7 years ago

jwestfall69 commented 7 years ago

mov/add/cmp use a signed imm5 value, but the debugger is displaying them as unsigned. This update sign extends the imm5 value for those opcodes to fix the displayed value.

yupferris commented 7 years ago

Beauty, thanks!