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

SNES 8 bit ADC and SBC tests

title

These programs test 8-bit ADC and SBC operations, written by Shay Green.

By: Evan G
Last updated: June 24, 2017

Tests of 8-bit ADC (Add with carry) and SBC (Subtract with Carry) operations. Appears to be different from the other test programs. There is source code and a readme.

SNES 8-bit ADC/SBC tests
------------------------
These tests verify 8-bit ADC and SBC operation for binary and decimal
modes. Each takes about 15 seconds. Failure codes:

	2: binary
	3: binary, carry set
	4: decimal
	5: decimal, carry set
	6: decimal, other flags set

Each tests with the indicated flags over all 65536 combinations of A and
the operand, and verifies the resulting A and flags (all 8 flags). The
final test has various other flags set which shouldn't affect operation,
just in case an emulator incorrectly uses them.

The main source is included, but not the libraries. Contact me for full
sources.

-- 
Shay Green 
image
test_adc.smc
image
test_sbc.smc

Download here


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