Cleaner simulator startup and run-loop exiting

- If a default ROM image ("rom.bin") isn't available at startup, the
  simulator will now create and load a 16KB R/W memory at the ROM
  location, so resets will work even without a ROM loaded.

- Cleaned up the way simulator UI state is updated when the run loop
  exits.
This commit is contained in:
Seth Morabito committed 2012-12-10 21:53:01 -08:00
1 parent 504f7291b3
commit 0215e2e3d8
3 files changed
+58 -59

No files matched your search

@@ -33,4 +33,10 @@ public class HexUtilTest extends TestCase {
assertEquals("FFFE", HexUtil.wordToHex(0xfffffe));
assertEquals("FF00", HexUtil.wordToHex(0xffff00));
}
public void testAllBytesAreCorrect() {
for (int i = 0; i <= 0xff; i++) {
assertEquals(String.format("%02X", i), HexUtil.byteToHex(i));
}
}
}