mirror of
https://gitlab.com/c3d/db48x.git
synced 2024-09-29 05:36:58 +02:00
simulator: Print version and first two-byte opcode on startup
This will help figure out how to prioritize opcode in the opcodes table. Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
parent
f73290d0be
commit
e6030369ad
1 changed files with 10 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "recorder.h"
|
||||
#include "sim-rpl.h"
|
||||
#include "sim-window.h"
|
||||
#include "version.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QWindow>
|
||||
|
@ -100,6 +101,15 @@ int main(int argc, char *argv[])
|
|||
if (cstring result = debug())
|
||||
record(options, "Strange input %s", result);
|
||||
|
||||
// Indicate the first two-byte opcode
|
||||
fprintf(stderr,
|
||||
"DB48X version %s\n"
|
||||
"Last single-byte opcode is %s\n"
|
||||
"First two byte opcode is %s\n",
|
||||
DB48X_VERSION,
|
||||
object::name(object::id(127)),
|
||||
object::name(object::id(128)));
|
||||
|
||||
record(options,
|
||||
"Simulator invoked as %+s with %d arguments", argv[0], argc-1);
|
||||
for (int a = 1; a < argc; a++)
|
||||
|
|
Loading…
Reference in a new issue