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:
Christophe de Dinechin 2023-07-17 23:16:10 +02:00
parent f73290d0be
commit e6030369ad

View file

@ -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++)