This commit is contained in:
folkert van heusden 2022-11-10 08:50:26 +01:00
parent 4ccc53f5f2
commit 13d3825d73

View file

@ -80,14 +80,20 @@ int main(int argc, char *argv[])
uint16_t console_switches = 0; uint16_t console_switches = 0;
std::string test;
int opt = -1; 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) { switch(opt) {
case 'h': case 'h':
help(); help();
return 1; return 1;
case 'Q':
test = optarg;
break;
case 's': case 's':
console_switches = strtol(optarg, NULL, 8); console_switches = strtol(optarg, NULL, 8);
break; break;
@ -225,6 +231,9 @@ int main(int argc, char *argv[])
sigaction(SIGTERM, &sa, nullptr); sigaction(SIGTERM, &sa, nullptr);
sigaction(SIGINT , &sa, nullptr); sigaction(SIGINT , &sa, nullptr);
if (test.empty() == false)
load_p11_x11(b, test);
#if 0 #if 0
// loadbin(b, 0, "test.dat"); // loadbin(b, 0, "test.dat");
// c->setRegister(7, 0); // c->setRegister(7, 0);