X-Git-Url: http://git.subgeniuskitty.com/screensavers/.git/blobdiff_plain/fbe4ccaea6e02bebf67dc5d4cd607a6f6c263c2e..d87b1e06771aeb63ff43f5a289b19563d9af0eb0:/hacks/NEDsim/simulator.h diff --git a/hacks/NEDsim/simulator.h b/hacks/NEDsim/simulator.h index 927f73b..971e76c 100644 --- a/hacks/NEDsim/simulator.h +++ b/hacks/NEDsim/simulator.h @@ -22,20 +22,15 @@ #include "./a.out.h" -// TODO: Can get rid of this since I don't do a show_usage() anymore? -#define VERSION 5 - /* Bytes per word. */ #define BPW 4 /* Number of stack words. */ -#define STACK_LENGTH 1048576 +#define STACK_LENGTH 65536 /* Number of bytes of RAM. */ -#define RAM_LENGTH 1073741824 - -/* Number of hardware threads. */ -#define THREAD_COUNT 8 +#define RAM_LENGTH 67108864 +#define RAM_BASE_ADDRESS 0x20000000 /* Number of syllables per word. */ #define SPW 5 @@ -58,11 +53,11 @@ struct NEDhack { bool resume_word; }; -// TODO: Make this a single thread before committing. Multi-thread is broken with my current main loop. struct NEDstate { bool halted; uint8_t ram[RAM_LENGTH]; - struct NEDthread * thread[THREAD_COUNT]; + /* Although NED is multi-threaded, this screensaver is restricted to a single thread. */ + struct NEDthread * thread[1]; struct NEDthread * active_thread; struct NEDhack * hack; };