mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-23 20:29:42 +00:00
Corrects now-unimplemented ADD/SUB.
This commit is contained in:
parent
689ba1d4a2
commit
73e1c8c780
@ -92,7 +92,7 @@ class EmuTOS: public CPU::MC68000::BusHandler {
|
||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
||||
}
|
||||
|
||||
- (void)testExample {
|
||||
- (void)testStartup {
|
||||
// This is an example of a functional test case.
|
||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
||||
_machine->run_for(HalfCycles(4000));
|
||||
|
@ -502,7 +502,7 @@ struct ProcessorStorageConstructor {
|
||||
// if(mode == 0x03) {
|
||||
// op(int(Action::Increment4) | MicroOp::DestinationMask);
|
||||
// }
|
||||
break;
|
||||
continue;
|
||||
|
||||
case 0x004: // ADD/SUB.bw Dn, -(An)
|
||||
// op( int(is_byte_access ? Action::Decrement1 : Action::Decrement2) | MicroOp::SourceMask,
|
||||
@ -859,7 +859,7 @@ struct ProcessorStorageConstructor {
|
||||
|
||||
default: // (An), (An)+, -(An), (d16, An), (d8, An Xn), (xxx).W, (xxx).L
|
||||
storage_.instructions[instruction].source = &storage_.source_bus_data_[0];
|
||||
storage_.instructions[instruction].source_address = &storage_.source_bus_data_[source_register];
|
||||
storage_.instructions[instruction].source_address = &storage_.address_[source_register];
|
||||
break;
|
||||
}
|
||||
|
||||
@ -874,7 +874,7 @@ struct ProcessorStorageConstructor {
|
||||
|
||||
default: // (An), (An)+, -(An), (d16, An), (d8, An Xn), (xxx).W, (xxx).L
|
||||
storage_.instructions[instruction].destination = &storage_.destination_bus_data_[0];
|
||||
storage_.instructions[instruction].destination = &storage_.source_bus_data_[destination_register];
|
||||
storage_.instructions[instruction].destination = &storage_.address_[destination_register];
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user