projects
/
screensavers
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added COLOR() macro to NEDsim for ease of reading.
[screensavers]
/
hacks
/
NEDsim
/
simulator.h
diff --git
a/hacks/NEDsim/simulator.h
b/hacks/NEDsim/simulator.h
index
c79d5fd
..
83f8622
100644
(file)
--- a/
hacks/NEDsim/simulator.h
+++ b/
hacks/NEDsim/simulator.h
@@
-1,8
+1,10
@@
/* (c) 2021 Aaron Taylor <ataylor at subgeniuskitty dot com> */
/* See LICENSE.txt file for copyright and license details. */
/* (c) 2021 Aaron Taylor <ataylor at subgeniuskitty dot com> */
/* See LICENSE.txt file for copyright and license details. */
+#ifndef NEDSIM_SIMULATOR_H
+#define NEDSIM_SIMULATOR_H
+
#include <stdbool.h>
#include <stdbool.h>
-#include "./a.out.h"
/* Bytes per word. */
#define BPW 4
/* Bytes per word. */
#define BPW 4
@@
-65,3
+67,4
@@
struct NEDstate * init_simulator(char * input_file);
struct NEDstate * run_simulator(struct NEDstate * state);
uint32_t ram_r_word(struct NEDstate * state, uint32_t address);
struct NEDstate * run_simulator(struct NEDstate * state);
uint32_t ram_r_word(struct NEDstate * state, uint32_t address);
+#endif