mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-07 21:57:46 +00:00
This logging has outlived its usefulness for now.
This commit is contained in:
parent
78296246e8
commit
08206eea56
@ -16,14 +16,14 @@ AllRAMProcessor::AllRAMProcessor() : ::CPU::AllRAMProcessor(65536) {}
|
|||||||
int AllRAMProcessor::perform_machine_cycle(const MachineCycle *cycle) {
|
int AllRAMProcessor::perform_machine_cycle(const MachineCycle *cycle) {
|
||||||
switch(cycle->operation) {
|
switch(cycle->operation) {
|
||||||
case BusOperation::ReadOpcode:
|
case BusOperation::ReadOpcode:
|
||||||
printf("! ");
|
// printf("! ");
|
||||||
check_address_for_trap(*cycle->address);
|
check_address_for_trap(*cycle->address);
|
||||||
case BusOperation::Read:
|
case BusOperation::Read:
|
||||||
printf("r %04x [%02x] AF:%04x BC:%04x DE:%04x HL:%04x SP:%04x\n", *cycle->address, memory_[*cycle->address], get_value_of_register(CPU::Z80::Register::AF), get_value_of_register(CPU::Z80::Register::BC), get_value_of_register(CPU::Z80::Register::DE), get_value_of_register(CPU::Z80::Register::HL), get_value_of_register(CPU::Z80::Register::StackPointer));
|
// printf("r %04x [%02x] AF:%04x BC:%04x DE:%04x HL:%04x SP:%04x\n", *cycle->address, memory_[*cycle->address], get_value_of_register(CPU::Z80::Register::AF), get_value_of_register(CPU::Z80::Register::BC), get_value_of_register(CPU::Z80::Register::DE), get_value_of_register(CPU::Z80::Register::HL), get_value_of_register(CPU::Z80::Register::StackPointer));
|
||||||
*cycle->value = memory_[*cycle->address];
|
*cycle->value = memory_[*cycle->address];
|
||||||
break;
|
break;
|
||||||
case BusOperation::Write:
|
case BusOperation::Write:
|
||||||
printf("w %04x\n", *cycle->address);
|
// printf("w %04x\n", *cycle->address);
|
||||||
memory_[*cycle->address] = *cycle->value;
|
memory_[*cycle->address] = *cycle->value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user