fix instruction timings for 2 instructions
commitc78ff06b6727f1cb126f39cd36a8dbfdcc2e6aa1
authorrofl0r <rofl0r@users.noreply.github.com>
Sun, 29 Aug 2021 04:18:34 +0000 (29 04:18 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Sun, 29 Aug 2021 08:50:13 +0000 (29 08:50 +0000)
treef893084d4445621ff6851cbf7c423aa60270963e
parent0f747c49e5c9ff6a5e1a81d740e702eb72fc6e55
fix instruction timings for 2 instructions

makes blargg-test-roms/instr_timing/instr_timing.gb pass.

incidentally, these same 2 instruction timings were fixed
in the reverted "1.04pre" commit 9859b44888b00c0835c0c499.

according to the readme accompanying the test, the
correct timings are:

Normal instructions:

        1,3,2,2,1,1,2,1,5,2,2,2,1,1,2,1,
        0,3,2,2,1,1,2,1,3,2,2,2,1,1,2,1,
        2,3,2,2,1,1,2,1,2,2,2,2,1,1,2,1,
        2,3,2,2,3,3,3,1,2,2,2,2,1,1,2,1,
        1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,
        1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,
        1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,
        2,2,2,2,2,2,0,2,1,1,1,1,1,1,2,1,
        1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,
        1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,
        1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,
        1,1,1,1,1,1,2,1,1,1,1,1,1,1,2,1,
        2,3,3,4,3,4,2,4,2,4,3,0,3,6,2,4,
        2,3,3,0,3,4,2,4,2,4,3,0,3,0,2,4,
        3,3,2,0,0,4,2,4,4,1,4,0,0,0,2,4,
        3,3,2,1,0,4,2,4,3,2,4,1,0,0,2,4

CB-prefixed instructions:

        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,3,2,2,2,2,2,2,2,3,2,
        2,2,2,2,2,2,3,2,2,2,2,2,2,2,3,2,
        2,2,2,2,2,2,3,2,2,2,2,2,2,2,3,2,
        2,2,2,2,2,2,3,2,2,2,2,2,2,2,3,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2,
        2,2,2,2,2,2,4,2,2,2,2,2,2,2,4,2

some of them are still different, for example instruction 16 which
has a timing of 0 here.
cpucore.h