From 6d0028fd1f67410db120ad3f2b14df5d5a11d48b Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Thu, 8 Jul 2021 18:24:57 -0700 Subject: [PATCH] Pruned #includes and made minor cleanups in NEDsim header file. --- hacks/NEDsim/simulator.h | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/hacks/NEDsim/simulator.h b/hacks/NEDsim/simulator.h index bf014eb..c79d5fd 100644 --- a/hacks/NEDsim/simulator.h +++ b/hacks/NEDsim/simulator.h @@ -1,40 +1,20 @@ /* (c) 2021 Aaron Taylor */ /* See LICENSE.txt file for copyright and license details. */ -// TODO: Prune includes in both this header and the corresponding source file. -#include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include "./a.out.h" /* Bytes per word. */ #define BPW 4 -/* Number of stack words. */ -#define STACK_LENGTH 65536 +/* Syllables per word. */ +#define SPW 5 -/* Number of bytes of RAM. */ -#define RAM_LENGTH 67108864 +/* Storage definitions. */ +#define STACK_LENGTH 65536 +#define RAM_LENGTH 67108864 #define RAM_BASE_ADDRESS 0x20000000 -/* Number of syllables per word. */ -#define SPW 5 - struct NEDpsw { bool zero; bool negative; -- 2.20.1