projects
/
ned1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
16a3af2
)
Reassigned command line flags in `nedsim` and updated print_usage().
author
Aaron Taylor
<ataylor@subgeniuskitty.com>
Tue, 10 Sep 2019 07:01:08 +0000
(
00:01
-0700)
committer
Aaron Taylor
<ataylor@subgeniuskitty.com>
Tue, 10 Sep 2019 07:01:08 +0000
(
00:01
-0700)
nedsim/nedsim.c
patch
|
blob
|
blame
|
history
diff --git
a/nedsim/nedsim.c
b/nedsim/nedsim.c
index
be63706
..
b443fc2
100644
(file)
--- a/
nedsim/nedsim.c
+++ b/
nedsim/nedsim.c
@@
-99,13
+99,13
@@
void
print_usage(char ** argv)
{
printf( "NED Simulator v%d (www.subgeniuskitty.com)\n"
print_usage(char ** argv)
{
printf( "NED Simulator v%d (www.subgeniuskitty.com)\n"
- "Usage: %s -
f <file>
\n"
+ "Usage: %s -
i <file> [-s <hz>} [-t <file>] [-a <address> -p <port>]
\n"
" -h Help (prints this message)\n"
" -h Help (prints this message)\n"
- " -
f
<file> Specify a binary image file to load in RAM.\n"
+ " -
i
<file> Specify a binary image file to load in RAM.\n"
" -s <int hz, optional> Frequency of simulated system clock.\n"
" Allowable values are 1 <= clock <= 1,000,000,000.\n"
" -t <file, optional> Saves a trace of JMP and BRZ syllables to file.\n"
" -s <int hz, optional> Frequency of simulated system clock.\n"
" Allowable values are 1 <= clock <= 1,000,000,000.\n"
" -t <file, optional> Saves a trace of JMP and BRZ syllables to file.\n"
- " -
i
<ip-addr, optional> IP address of nedfp instance. Enables front panel output.\n"
+ " -
a
<ip-addr, optional> IP address of nedfp instance. Enables front panel output.\n"
" -p <port, optional> Port of nedfp instance. Required when '-i' specified.\n"
, VERSION, argv[0]
);
" -p <port, optional> Port of nedfp instance. Required when '-i' specified.\n"
, VERSION, argv[0]
);
@@
-702,9
+702,9
@@
main(int argc, char ** argv)
char * fp_ip = NULL;
char * fp_port = NULL;
uint32_t fp_ram = 0x40000000;
char * fp_ip = NULL;
char * fp_port = NULL;
uint32_t fp_ram = 0x40000000;
- while ((c = getopt(argc,argv,"hi:p:t:s:
f
:")) != -1) {
+ while ((c = getopt(argc,argv,"hi:p:t:s:
a
:")) != -1) {
switch (c) {
switch (c) {
- case '
f
':
+ case '
i
':
if ((input = fopen(optarg, "r")) == NULL) {
fprintf(stderr, "ERROR: %s: %s\n", optarg, strerror(errno));
exit(EXIT_FAILURE);
if ((input = fopen(optarg, "r")) == NULL) {
fprintf(stderr, "ERROR: %s: %s\n", optarg, strerror(errno));
exit(EXIT_FAILURE);
@@
-716,7
+716,7
@@
main(int argc, char ** argv)
exit(EXIT_FAILURE);
}
break;
exit(EXIT_FAILURE);
}
break;
- case '
i
':
+ case '
a
':
// TODO: What do I want to consider valid input?
fp_ip = optarg;
break;
// TODO: What do I want to consider valid input?
fp_ip = optarg;
break;