Megatokio / Libraries

c++ libraries required for all of my projects
Other
12 stars 8 forks source link

Correct `TST_N` and `TSTIO_N` opcode length calculation #3

Closed codebje closed 4 years ago

codebje commented 4 years ago

TST m is 0xED 0x64 m, and TSTIO m is 0xED 0x74 m. This PR fixes the test from 0x76 to 0x74 and the length from 7 to 3. The first fix is necessary to prevent zasm from crashing on TST m when writing opcode cycle counts to the listing file. The second doesn't seem to be necessary to prevent the crash.