You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These fields are 16-bit but for the original CHIP-8 interpreter they were 12-bit, so for ideal emulation in CHIP-8 mode we should throw an error if an attempt is made to assign to/increment these registers beyond the 12-bit max.
This will be most easily achieved by replacing direct assignment to the fields with a setter method that specifically checks for emulation mode and checks for 12-bit overflow if appropriate.
The text was updated successfully, but these errors were encountered:
These fields are 16-bit but for the original CHIP-8 interpreter they were 12-bit, so for ideal emulation in CHIP-8 mode we should throw an error if an attempt is made to assign to/increment these registers beyond the 12-bit max.
This will be most easily achieved by replacing direct assignment to the fields with a setter method that specifically checks for emulation mode and checks for 12-bit overflow if appropriate.
The text was updated successfully, but these errors were encountered: