misc fixes
This commit is contained in:
parent
c6f94eb0a4
commit
5b3c2fb0a4
1 changed files with 3 additions and 10 deletions
13
cpu.cpp
13
cpu.cpp
|
@ -1120,7 +1120,7 @@ std::pair<std::string, int> cpu::addressing_to_string(const uint8_t mode_registe
|
|||
|
||||
case 3:
|
||||
if (reg == 7)
|
||||
return { format("@#%06o|%x|%d", next_word, next_word, next_word), 4 };
|
||||
return { format("@#%06o", next_word), 4 };
|
||||
|
||||
return { format("@(%s)+", reg_name.c_str()), 2 };
|
||||
|
||||
|
@ -1170,7 +1170,7 @@ void cpu::disassemble()
|
|||
// TODO: 100000011
|
||||
|
||||
if (do_opcode == 0b000) {
|
||||
auto dst_text = addressing_to_string(src_register, pc);
|
||||
auto dst_text = addressing_to_string(dst_register, pc);
|
||||
|
||||
// single_operand_instructions
|
||||
switch(so_opcode) {
|
||||
|
@ -1276,7 +1276,7 @@ void cpu::disassemble()
|
|||
break;
|
||||
|
||||
case 7:
|
||||
text = std::string("SOB") + dst_text.first;
|
||||
text = std::string("SOB ") + dst_text.first;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1476,13 +1476,6 @@ bool cpu::step()
|
|||
if (getPC() & 1)
|
||||
busError();
|
||||
|
||||
if (getPC() == 03332) {
|
||||
FILE *fh = fopen("debug.dat", "wb");
|
||||
for(int i=0; i<256; i++)
|
||||
fputc(b -> readByte(getPC() + i), fh);
|
||||
fclose(fh);
|
||||
}
|
||||
|
||||
disassemble();
|
||||
|
||||
b -> setMMR2(getPC());
|
||||
|
|
Loading…
Add table
Reference in a new issue