31 lines
706 B
C
31 lines
706 B
C
|
|
|
|
for (int y = 0; y < 16; y++) {
|
|
for (int x = 0; x < 16; x++) {
|
|
int i = x | (y << 4);
|
|
instruction_t ins = decode_ins[i];
|
|
if (x == 0)
|
|
fprintf(stdout, "|%5s |", opcode_string[ins.opcode]);
|
|
else
|
|
fprintf(stdout, "%6s |", opcode_string[ins.opcode]);
|
|
}
|
|
|
|
fprintf(stdout, "\n");
|
|
|
|
for (int x = 0; x < 16; x++) {
|
|
int i = x | (y << 4);
|
|
instruction_t ins = decode_ins[i];
|
|
if (x == 0)
|
|
fprintf(stdout, "|%5s |", mode_string[ins.mode]);
|
|
else
|
|
fprintf(stdout, "%6s |", mode_string[ins.mode]);
|
|
}
|
|
|
|
fprintf(stdout, "\n");
|
|
|
|
for (int c = 0; c < 128; c++) {
|
|
fputc('-', stdout);
|
|
}
|
|
fputc('\n', stdout);
|
|
}
|