1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Corrects addressing mode support for LEA.

This commit is contained in:
Thomas Harte 2019-04-11 11:58:34 -04:00 committed by GitHub
parent 8e9d7c0f40
commit 652ebd143c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1477,18 +1477,19 @@ struct ProcessorStorageConstructor {
const int mode = combined_mode(ea_mode, ea_register);
switch(mode) {
default: continue;
case 0x04:
case 0x02:
storage_.instructions[instruction].source = &storage_.address_[ea_register];
break;
case 0x05: case 0x06: case 0x10:
case 0x11: case 0x12: case 0x13:
storage_.instructions[instruction].source = &storage_.effective_address_[0];
storage_.instructions[instruction].source_address = &storage_.address_[ea_register];
break;
}
switch(mode) {
default: break;
case 0x04: // LEA (An), An (i.e. MOVEA)
case 0x02: // LEA (An), An (i.e. MOVEA)
op(Action::PerformOperation, seq("np"));
break;