Closed hamhub7 closed 4 years ago
The bug here is that javidx9 assumes that the value is unsigned, but in relative addressing mode it is signed. Instead of adding always, we subtract in the cases where the value is negative using 2's complement. This seems to work great.
This was corrected in the next video, linked here: https://youtu.be/xdzOvpYPmGE?t=2340
The bug here is that javidx9 assumes that the value is unsigned, but in relative addressing mode it is signed. Instead of adding always, we subtract in the cases where the value is negative using 2's complement. This seems to work great.