Donkey Kong Country (USA).zip: MAME 2,000,000 instructions parsed in 3 s; board 8,000,000 in 41 s (pypy) compared: MAME 1,853,731, board 8,000,001 aligned 1,789,080: all registers equal 1,625,183 (90.839 %), PC only 163,897 (fields: {'s': 16, 'p': 43955, 'a': 28047, 'x': 128337, 'y': 128337}) skipped: MAME 64,651, board 6,210,921; divergences 10,619 8,164 S-SMP port $2140-3 (APU timing) 1,816 S-SMP port $2140-3 (APU timing) (polled in the skipped stretch) 415 WAI with /IRQ held and P.I set: the board resumes at once (DOC: WDC datasheet, WAI), MAME sleeps to the next NMI 120 HVBJOY $4212 (line timing, auto-joypad busy) 104 NMI/IRQ flag $4210/$4211 (frame timing) (polled in the skipped stretch) clocks per instruction (board less refresh and DMA): 1,757,687 of 1,778,460 equal 10,768 x LDA abs,Y (read), X/Y 16-bit, page not crossed: board +6 (MAME 24, board 30 + 0 taken; first MAME #1,242,441 board #3,080,144) 9,776 x LDA abs,X (read), X/Y 16-bit, page not crossed: board +6 (MAME 24, board 30 + 0 taken; first MAME #1,348,490 board #5,641,782) 227 x XBA: board +6 (MAME 12, board 18 + 0 taken; first MAME #3,256 board #1,588) 1 x interrupt entry (MAME charges the entry no clocks): board -211332 (MAME 218388, board 7056 + 200 taken; first MAME #1,206,956 board #1,177,025) 1 x opcode $CB: board -3166 (MAME 44056, board 40890 + 1282 taken; first MAME #1,207,249 board #1,177,200) stretches of PC-only matches: 8,539 8,164 S-SMP port $2140-3 (APU timing) 254 unattributed: a memory value differs (power-on WRAM/SRAM, or game state that drifted) 120 HVBJOY $4212 (line timing, auto-joypad busy) 1 S after reset (core: $01FF less the reset sequence's 3 stack cycles; MAME: $01FF) #0 / #0 at 008000: s: S after reset (core: $01FF less the reset sequence's 3 stack cycles; MAME: $01FF) #487 / #487 at 8AB0F3: p: S-SMP port $2140-3 (APU timing) #2,166 / #526 at 8AB105: p: S-SMP port $2140-3 (APU timing) #2,266 / #626 at 8AB117: p: S-SMP port $2140-3 (APU timing) #2,316 / #676 at 8AB117: p: S-SMP port $2140-3 (APU timing) #2,370 / #726 at 8AB117: p: S-SMP port $2140-3 (APU timing) #2,447 / #801 at 8AB117: p: S-SMP port $2140-3 (APU timing) #2,549 / #901 at 8AB117: p: S-SMP port $2140-3 (APU timing) #2,626 / #976 at 8AB117: p: S-SMP port $2140-3 (APU timing) #2,678 / #1,026 at 8AB117: p: S-SMP port $2140-3 (APU timing) #2,755 / #1,101 at 8AB117: p: S-SMP port $2140-3 (APU timing) #2,832 / #1,176 at 8AB117: p: S-SMP port $2140-3 (APU timing) first divergences (MAME index, board index, MAME skip, board skip, cause): #488 / #488 at 8AB0F0: skip 1640 / 0: S-SMP port $2140-3 (APU timing) #2,167 / #527 at 8AB107: skip 7 / 7: S-SMP port $2140-3 (APU timing) #2,267 / #627 at 8AB114: skip 9 / 9: S-SMP port $2140-3 (APU timing) #2,317 / #677 at 8AB114: skip 4 / 0: S-SMP port $2140-3 (APU timing) #2,371 / #727 at 8AB119: skip 11 / 9: S-SMP port $2140-3 (APU timing) #2,448 / #802 at 8AB119: skip 11 / 9: S-SMP port $2140-3 (APU timing) #2,550 / #902 at 8AB114: skip 2 / 0: S-SMP port $2140-3 (APU timing) #2,627 / #977 at 8AB114: skip 2 / 0: S-SMP port $2140-3 (APU timing) #2,679 / #1,027 at 8AB114: skip 2 / 0: S-SMP port $2140-3 (APU timing) #2,756 / #1,102 at 8AB114: skip 2 / 0: S-SMP port $2140-3 (APU timing) #2,833 / #1,177 at 8AB114: skip 11 / 7: S-SMP port $2140-3 (APU timing) #2,885 / #1,225 at 8AB119: skip 9 / 9: S-SMP port $2140-3 (APU timing)