fprintf(stdout, "%s ", monitor_prompt);
buf = malloc_chk(MONINSIZE + 1, "monitor.buf");
fgets(buf, MONINSIZE, stdin);
- fprintf(stdout, "%s", buf);
if(!buf[0]) {
cmdtype = MONQUIT;
}
strip_end(buf); /* 文字列末尾の改行と空白を削除 */
+ fprintf(stdout, "%s\n", buf);
if((moncmdl = monlinetok(buf)) != NULL) {
cmdtype = monitorcmd(moncmdl->cmd, moncmdl->args);
free_moncmdline(moncmdl);
/**
* ハッシュ表
*/
-static CMDTAB *cmdtab[HASH_MAX][CMDTABSIZE] = {NULL};
+static CMDTAB *cmdtab[HASH_MAX][CMDTABSIZE] = {{NULL}};
/**
* 命令の名前とタイプからハッシュ値を生成する
}
fwrite(w, sizeof(WORD), ARRAYSIZE(w), fp);
fclose(fp);
- FREE(fp);
return 0;
}
b[reak] d[el] <address>
b[reak] l[ist]
b[reak] r[eset]
-(comet2 monitor)
\ No newline at end of file
+(comet2 monitor)
b[reak] d[el] <address>
b[reak] l[ist]
b[reak] r[eset]
-(comet2 monitor) 1: ignored.
+(comet2 monitor)
+1: ignored.
#0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000
#0000: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
#0000: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
-(comet2 monitor)
\ No newline at end of file
+(comet2 monitor)
#0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000
#0000: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
#0000: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
-(comet2 monitor)
\ No newline at end of file
+(comet2 monitor)
-------------------------------------------------------------------------------------
#0000: 0000: 7001 0000 7002 0000 3622 1010 0015 2621 2210 0017 4110 0016 6500 0010 6400 0007
#0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000
-(comet2 monitor)
\ No newline at end of file
+(comet2 monitor)
-------------------------------------------------------------------------------------
#0000: 0000: 7001 0000 7002 0000 3622 1010 0015 2621 2210 0017 4110 0016 6500 0010 6400 0007
#0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000
-(comet2 monitor) #40: ignored.
+(comet2 monitor)
+#40: ignored.
-------------------------------------------------------------------------------------
#0000: 0000: 7001 0000 7002 0000 3622 1010 0015 2621 2210 0017 4110 0016 6500 0010 6400 0007
#0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000
-(comet2 monitor)
\ No newline at end of file
+(comet2 monitor)
t[race] -- Display CPU register. `t[race] a[uto]/n[oauto]' set auto/noauto display.
T[race] -- Display CPU register as logical value. `t[race] a[uto]/n[oauto]' set auto/noauto display.
?/h[elp] -- Display this help.
-(comet2 monitor)
\ No newline at end of file
+(comet2 monitor)
#0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000
#0000: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
#0000: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
-(comet2 monitor)
\ No newline at end of file
+(comet2 monitor)
DC 13 ; #0020: #000D :: 13 = #000D = 0000000000001101
DC 10 ; #0021: #000A :: 10 = #000A = 0000000000001010 = '\n'
DC 1 ; #0022: #0001 :: 1 = #0001 = 0000000000000001
-(comet2 monitor)
\ No newline at end of file
+(comet2 monitor)