mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +00:00
Fixes ADD/SUB Dn,x to use the proper destination value.
This commit is contained in:
parent
cadc0bd509
commit
41d800cb63
@ -72,6 +72,10 @@ template <class T, bool dtack_is_implicit> void Processor<T, dtack_is_implicit>:
|
||||
|
||||
active_program_ = &instructions[decoded_instruction_];
|
||||
active_micro_op_ = active_program_->micro_operations;
|
||||
|
||||
if(decoded_instruction_ == 0xd1ae) {
|
||||
printf("");
|
||||
}
|
||||
}
|
||||
|
||||
auto bus_program = active_micro_op_->bus_program;
|
||||
|
@ -881,7 +881,7 @@ struct ProcessorStorageConstructor {
|
||||
storage_.instructions[instruction].source = &storage_.data_[data_register];
|
||||
|
||||
const auto destination_register = ea_register;
|
||||
storage_.instructions[instruction].destination = &storage_.destination_bus_data_[1];
|
||||
storage_.instructions[instruction].destination = &storage_.destination_bus_data_[0];
|
||||
storage_.instructions[instruction].destination_address = &storage_.address_[destination_register];
|
||||
|
||||
// Perform [ADD/SUB].blw Dn, <ea>
|
||||
|
Loading…
Reference in New Issue
Block a user