Started on Zero Page opcodes and tests.

This commit is contained in:
Seth J. Morabito committed 2008-12-27 13:01:07 -08:00
1 parent de0742f59f
commit ecde55c6b8
6 files changed
+346 -126

No files matched your search

@@ -346,4 +346,13 @@ public class CpuTest extends TestCase {
assertFalse(cpu.getOverflowFlag());
assertFalse(cpu.getNegativeFlag());
}
public void testAddress() {
assertEquals(0xf1ea, cpu.address(0xea, 0xf1));
assertEquals(0x00ea, cpu.address(0xea, 0x00));
assertEquals(0xf100, cpu.address(0x00, 0xf1));
assertEquals(0x1234, cpu.address(0x34, 0x12));
assertEquals(0xffff, cpu.address(0xff, 0xff));
}
}