mirror of
https://bitbucket.org/rslr/miggy-cpu.git
synced 2026-06-12 19:16:29 +00:00
Fixed NEG.w
This commit is contained in:
parent
bd74a9661f
commit
cee4710070
5 changed files with 348 additions and 341 deletions
|
|
@ -334,7 +334,7 @@ public class CorePLAGenerator {
|
|||
if (mode == 0) {
|
||||
appendOP(gen, entries, array, opcode, opmask, opname, n1, "dbrr", "dbrr");
|
||||
} else {
|
||||
appendOP(gen, entries, array, opcode, opmask, opname, n1, "dbrr", monadic(gen, "neg", "l", "ea"));
|
||||
appendOP(gen, entries, array, opcode, opmask, opname, n1, "dbrr", monadic(gen, "neg", "w", "ea"));
|
||||
}
|
||||
});
|
||||
appendOP_eas(0x4480, 0xffc0, "neg_l", EA_FETCH | EA_MALT, "32", monadic(gen, "neg", "l", "ds"), null, (opcode, opmask, opname, n1, mode) -> {
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -258,6 +258,7 @@ import static miggy.cpupoet.Core.gen_negb_ea;
|
|||
import static miggy.cpupoet.Core.gen_negl_ds;
|
||||
import static miggy.cpupoet.Core.gen_negl_ea;
|
||||
import static miggy.cpupoet.Core.gen_negw_ds;
|
||||
import static miggy.cpupoet.Core.gen_negw_ea;
|
||||
import static miggy.cpupoet.Core.gen_negxb_ds;
|
||||
import static miggy.cpupoet.Core.gen_negxb_ea;
|
||||
import static miggy.cpupoet.Core.gen_negxl_ds;
|
||||
|
|
@ -1651,19 +1652,19 @@ public enum MacroPLA {
|
|||
|
||||
neg_w_ds(0x4440, 0xfff8, gen_negw_ds, dbrr, dbrr),
|
||||
|
||||
neg_w_ais(0x4450, 0xfff8, ea_ais16_read, dbrr, gen_negl_ea),
|
||||
neg_w_ais(0x4450, 0xfff8, ea_ais16_read, dbrr, gen_negw_ea),
|
||||
|
||||
neg_w_aips(0x4458, 0xfff8, ea_aips16_read, dbrr, gen_negl_ea),
|
||||
neg_w_aips(0x4458, 0xfff8, ea_aips16_read, dbrr, gen_negw_ea),
|
||||
|
||||
neg_w_pais(0x4460, 0xfff8, ea_pais16_read, dbrr, gen_negl_ea),
|
||||
neg_w_pais(0x4460, 0xfff8, ea_pais16_read, dbrr, gen_negw_ea),
|
||||
|
||||
neg_w_das(0x4468, 0xfff8, ea_das16_read, dbrr, gen_negl_ea),
|
||||
neg_w_das(0x4468, 0xfff8, ea_das16_read, dbrr, gen_negw_ea),
|
||||
|
||||
neg_w_dais(0x4470, 0xfff8, ea_dais16_read, dbrr, gen_negl_ea),
|
||||
neg_w_dais(0x4470, 0xfff8, ea_dais16_read, dbrr, gen_negw_ea),
|
||||
|
||||
neg_w_adr16(0x4478, 0xffff, ea_adr16s16_read, dbrr, gen_negl_ea),
|
||||
neg_w_adr16(0x4478, 0xffff, ea_adr16s16_read, dbrr, gen_negw_ea),
|
||||
|
||||
neg_w_adr32(0x4479, 0xffff, ea_adr32s16_read, dbrr, gen_negl_ea),
|
||||
neg_w_adr32(0x4479, 0xffff, ea_adr32s16_read, dbrr, gen_negw_ea),
|
||||
|
||||
neg_l_ds(0x4480, 0xfff8, gen_negl_ds, dbrr, dbrr),
|
||||
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ public class InstructionTests extends TestCase {
|
|||
test.executeBinTest("SUBX.w");
|
||||
test.executeBinTest("SUBX.l");
|
||||
test.executeBinTest("NEG.b");
|
||||
//test.executeBinTest("NEG.w");
|
||||
test.executeBinTest("NEG.w");
|
||||
test.executeBinTest("NEG.l");
|
||||
test.executeBinTest("NEGX.b");
|
||||
test.executeBinTest("NEGX.w");
|
||||
|
|
|
|||
BIN
miggy-emu/src/test/resources/miggy/cpupoet/NEG.w.json.bin
Normal file
BIN
miggy-emu/src/test/resources/miggy/cpupoet/NEG.w.json.bin
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue