Monitor: wide 132x64 screen showing everything at once
On the 132x64 screen the monitor shows PC and all integer registers, all float registers (hex and decimal) with FCSR decoded, mstatus/mepc/mcause/ mtval/cycle/instret and the breakpoint, 24 rows of disassembly beside the stack, and 14 rows of memory, with changed registers highlighted; the 80x32 layout is unchanged. R takes float register names. The CPU's trap CSRs start at 0, so reading them before the first trap no longer hangs the simulated bus. send-hex accepts the prompt on any row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1e44ce4383
commit
addf0157fc
10 files changed
+3644
-3373
No files matched your search
+2
-2
@@ -463,7 +463,7 @@ enum {
|
||||
P_LI, P_LA, P_MV, P_NOT, P_NEG, P_SEQZ, P_SNEZ, P_SLTZ, P_SGTZ, P_J, P_JR, P_RET,
|
||||
P_CALL, P_BZ, P_BZS, P_BSW, P_CSRR, P_CSRW, P_CSRWI, P_FR, P_FS
|
||||
};
|
||||
struct ins { char name[8]; u8 f; u32 base; };
|
||||
struct ins { char name[7]; u8 f; u32 base; }; /* 12 bytes: a 7-letter name has no 0 */
|
||||
static const struct ins itab[] = {
|
||||
{ "ADD", F_R, 0x00000033 }, { "SUB", F_R, 0x40000033 }, { "SLL", F_R, 0x00001033 },
|
||||
{ "SLT", F_R, 0x00002033 }, { "SLTU", F_R, 0x00003033 }, { "XOR", F_R, 0x00004033 },
|
||||
@@ -740,7 +740,7 @@ static void a_line(char *s)
|
||||
return;
|
||||
}
|
||||
for (m = 0; m < NINS; m++)
|
||||
if (!strncmp(w, itab[m].name, 8)) break;
|
||||
if (!strncmp(w, itab[m].name, 7) && !w[7]) break;
|
||||
if (m == NINS) { a_fail("UNKNOWN INSTRUCTION"); return; }
|
||||
a_split();
|
||||
if (a_err) return;
|
||||
|
||||
Reference in new issue
Block a user