/* (c) 2021 Aaron Taylor <ataylor at subgeniuskitty dot com> */
/* See LICENSE.txt file for copyright and license details. */
// TODO: Prune includes in both this header and the corresponding source file.
// TODO: Can get rid of this since I don't do a show_usage() anymore?
/* Number of stack words. */
#define STACK_LENGTH 1048576
/* Number of bytes of RAM. */
#define RAM_LENGTH 1073741824
/* Number of hardware threads. */
/* Number of syllables per word. */
uint32_t stack
[STACK_LENGTH
];
// TODO: Make this a single thread before committing. Multi-thread is broken with my current main loop.
struct NEDthread
* thread
[THREAD_COUNT
];
struct NEDthread
* active_thread
;
struct NEDstate
* init_simulator(void);
struct NEDstate
* run_simulator(struct NEDstate
* state
);
uint32_t ram_r_word(struct NEDstate
* state
, uint32_t address
);