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:
1 parent
504f7291b3
commit
0215e2e3d8
3 files changed
+58
-59
No files matched your search
@@ -14,8 +14,8 @@ package com.loomcom.symon.util;
|
||||
* The most convenient way to get a formatted hex value from an integer is with the <code>String.format</code>
|
||||
* method, but this turns out to be extremely inefficient. Formatting a million integers
|
||||
* with <code>String.format</code> takes something like 1600ms. Formatting the same number of integers
|
||||
* with <code>HexUtil</code> takes only 160ms. This is on part with <code>Integer.toHexString</code>,
|
||||
* but also allows the desired padding.
|
||||
* with <code>HexUtil</code> takes only 160ms. This is on par with <code>Integer.toHexString</code>,
|
||||
* but also gives the desired padding.
|
||||
*
|
||||
*/
|
||||
public class HexUtil {
|
||||
|
||||
Reference in new issue
Block a user