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

SNES OAM tests

title

This is three programs to test OAM (Object Attribute Memory)

By: Evan G
Last updated: June 24, 2017

Three programs to test OAM (object attribute memory). This defines the sprites in memory. Presumably written by blargg. There is source code and a readme.

Tests pass on original and mini SNES units.

Asm uses the following:

mov addr, #immediate
	
	lda #immediate
	sta addr

movw addr,#immediate

	lda #immediate
	sta addr+1

set_test code, text

	Saves code and text for printing if test fails.

Jcc addr

	Like Bcc, but can jump anywhere if condition holds.

test_failed

	Reports failure and prints most recent set_test code and text.

check_oam addr, data

	Verifies that OAM matches data, starting at addr.
image
1-random.smc
image
2-low.smc
image
3-high.smc

Download here


© 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.