image image image image image image image image image image image image image image

SNES mul div timing

title

Programs to test division and multiplication operations.

By: Evan G
Last updated: June 24, 2017

This set has two programs to test division and multiplication operations. Presumably written by blargg.

image
div_timing.smc
image
mul_timing.smc - this fails even in higan

Download here

Testing of mul_timing.smc

After posting this, byuu asked around to see if the MUL timing program works on real hardware, and it doesn't. Higan produces the same results as the real console. This indicates there is a bug with the program. However, the SNES Jr/mini produces a different result:

image
Failure of mul_timing.smc on a SNES Jr. photo by @fleedar

Another note by byuu:

The reason one of the tests says "0807" is because blargg's code didn't account for 16-bit X -> 8-bit A "tax" *not* clearing A.hi

© Evan G. This site is made by a Canadian, and fueled by beer. Do not use material on this site without permission. This site does not use cookies.