-Q
This commit is contained in:
parent
4ccc53f5f2
commit
13d3825d73
1 changed files with 10 additions and 1 deletions
11
main.cpp
11
main.cpp
|
@ -80,14 +80,20 @@ int main(int argc, char *argv[])
|
|||
|
||||
uint16_t console_switches = 0;
|
||||
|
||||
std::string test;
|
||||
|
||||
int opt = -1;
|
||||
while((opt = getopt(argc, argv, "hm:T:r:R:p:ndtL:b:l:3s:")) != -1)
|
||||
while((opt = getopt(argc, argv, "hm:T:r:R:p:ndtL:b:l:3s:Q:")) != -1)
|
||||
{
|
||||
switch(opt) {
|
||||
case 'h':
|
||||
help();
|
||||
return 1;
|
||||
|
||||
case 'Q':
|
||||
test = optarg;
|
||||
break;
|
||||
|
||||
case 's':
|
||||
console_switches = strtol(optarg, NULL, 8);
|
||||
break;
|
||||
|
@ -225,6 +231,9 @@ int main(int argc, char *argv[])
|
|||
sigaction(SIGTERM, &sa, nullptr);
|
||||
sigaction(SIGINT , &sa, nullptr);
|
||||
|
||||
if (test.empty() == false)
|
||||
load_p11_x11(b, test);
|
||||
|
||||
#if 0
|
||||
// loadbin(b, 0, "test.dat");
|
||||
// c->setRegister(7, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue