--- nono/vm/human68k.cpp 2026/04/29 17:04:55 1.1.1.7 +++ nono/vm/human68k.cpp 2026/04/29 17:04:58 1.1.1.8 @@ -40,9 +40,9 @@ static bool human68k_fline_callback(m68k Human68k::Human68k() : inherited("Human68k") { - assert(gMainApp.human68k_file); - human68k_file = gMainApp.human68k_file; - human68k_arg = gMainApp.human68k_arg; + assert(gMainApp.exec_file); + human68k_file = gMainApp.exec_file; + human68k_arg = gMainApp.exec_arg; Files[0].fd = 0; Files[0].filename = "|stdin"; @@ -77,7 +77,7 @@ Human68k::Init() gRAM->Write8(0x0cbd, 0xff); } - putmsg(1, "arg=%s", human68k_arg); + putmsg(1, "arg=%s", human68k_arg.c_str()); // 実行ファイルオープン autofd file_fd = open(human68k_file, O_RDONLY); @@ -158,6 +158,7 @@ Human68k::Init() break; } } + // XXX: 255文字以上のときどうなるか調べること // PSP (process entry) を書き込む。 // instructiontest.x はコマンドラインを指定するだけで動くようだ