1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Corrects [AND/OR/EOR].bw Dn, -(An) to decrement destination.

It was previously doing a predecrement on the internal source address, which is unused. This fixes at least Dan Dare III and Silkworm.
This commit is contained in:
Thomas Harte 2019-11-09 11:25:23 -05:00
parent 45375fb5d0
commit db03b03276

View File

@ -1056,7 +1056,7 @@ struct ProcessorStorageConstructor {
break;
case bw(PreDec): // [AND/OR/EOR].bw Dn, -(An)
op(dec(ea_register) | MicroOp::SourceMask, seq("n nrd", { a(ea_register) }, !is_byte_access));
op(dec(ea_register) | MicroOp::DestinationMask, seq("n nrd", { a(ea_register) }, !is_byte_access));
op(Action::PerformOperation, seq("np nw", { a(ea_register) }, !is_byte_access));
break;