X-Git-Url: http://git.subgeniuskitty.com/screensavers/.git/blobdiff_plain/6d0028fd1f67410db120ad3f2b14df5d5a11d48b..b73247cfaa571f5f162eca6e55ee7ea803d31dd7:/hacks/NEDsim/simulator.h diff --git a/hacks/NEDsim/simulator.h b/hacks/NEDsim/simulator.h index c79d5fd..51c461e 100644 --- a/hacks/NEDsim/simulator.h +++ b/hacks/NEDsim/simulator.h @@ -1,8 +1,10 @@ /* (c) 2021 Aaron Taylor */ /* See LICENSE.txt file for copyright and license details. */ +#ifndef NEDSIM_SIMULATOR_H +#define NEDSIM_SIMULATOR_H + #include -#include "./a.out.h" /* Bytes per word. */ #define BPW 4 @@ -61,7 +63,8 @@ enum syllables { HALT = 0b00000000 }; -struct NEDstate * init_simulator(char * input_file); +struct NEDstate * init_simulator(char * input_file, const uint8_t * blob, const size_t * blob_size); struct NEDstate * run_simulator(struct NEDstate * state); uint32_t ram_r_word(struct NEDstate * state, uint32_t address); +#endif