projects
/
screensavers
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5923644
)
Pruned #includes and made minor cleanups in NEDsim header file.
author
Aaron Taylor
<ataylor@subgeniuskitty.com>
Fri, 9 Jul 2021 01:24:57 +0000
(18:24 -0700)
committer
Aaron Taylor
<ataylor@subgeniuskitty.com>
Fri, 9 Jul 2021 01:24:57 +0000
(18:24 -0700)
hacks/NEDsim/simulator.h
patch
|
blob
|
blame
|
history
diff --git
a/hacks/NEDsim/simulator.h
b/hacks/NEDsim/simulator.h
index
bf014eb
..
c79d5fd
100644
(file)
--- a/
hacks/NEDsim/simulator.h
+++ b/
hacks/NEDsim/simulator.h
@@
-1,40
+1,20
@@
/* (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. */
-// TODO: Prune includes in both this header and the corresponding source file.
-#include <stdio.h>
-#include <stdint.h>
-#include <inttypes.h>
-#include <stdlib.h>
#include <stdbool.h>
#include <stdbool.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <string.h>
-#include <errno.h>
-#include <time.h>
-#include <termios.h>
-#include <signal.h>
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-
#include "./a.out.h"
/* Bytes per word. */
#define BPW 4
#include "./a.out.h"
/* Bytes per word. */
#define BPW 4
-/*
Number of stack words
. */
-#define S
TACK_LENGTH 65536
+/*
Syllables per word
. */
+#define S
PW 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
#define RAM_BASE_ADDRESS 0x20000000
-/* Number of syllables per word. */
-#define SPW 5
-
struct NEDpsw {
bool zero;
bool negative;
struct NEDpsw {
bool zero;
bool negative;