mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 15:32:04 +00:00
Get far enough through CHK to realise that MOVEM probably needs to be divided by direction.
This commit is contained in:
parent
af973138df
commit
39f0ec7536
@ -287,14 +287,28 @@ template <Model model, Operation t_operation = Operation::Undefined> uint8_t ope
|
||||
// Single-operand read-modify-write.
|
||||
//
|
||||
case Operation::NBCD:
|
||||
case Operation::NOTb: case Operation::NOTw: case Operation::NOTl:
|
||||
case Operation::NEGb: case Operation::NEGw: case Operation::NEGl:
|
||||
case Operation::NEGXb: case Operation::NEGXw: case Operation::NEGXl:
|
||||
case Operation::EXTbtow: case Operation::EXTwtol:
|
||||
return FetchOp1 | StoreOp1;
|
||||
|
||||
//
|
||||
// CLR, which is model-dependent.
|
||||
//
|
||||
case Operation::CLRb: case Operation::CLRw: case Operation::CLRl:
|
||||
if constexpr (model == Model::M68000) {
|
||||
return FetchOp1 | StoreOp1;
|
||||
} else {
|
||||
return StoreOp1;
|
||||
}
|
||||
|
||||
//
|
||||
// Two-operand; read both.
|
||||
//
|
||||
case Operation::CMPb: case Operation::CMPw: case Operation::CMPl:
|
||||
case Operation::CMPAw: case Operation::CMPAl:
|
||||
case Operation::CHK:
|
||||
return FetchOp1 | FetchOp2;
|
||||
|
||||
//
|
||||
@ -319,6 +333,9 @@ template <Model model, Operation t_operation = Operation::Undefined> uint8_t ope
|
||||
case Operation::EORb: case Operation::EORw: case Operation::EORl:
|
||||
return FetchOp1 | FetchOp2 | StoreOp2;
|
||||
|
||||
// case Operation::MOVEMw:
|
||||
// case Operation::MOVEMl:
|
||||
|
||||
//
|
||||
// Two-operand; read both, write source.
|
||||
//
|
||||
|
@ -37,9 +37,12 @@
|
||||
// addx_subx
|
||||
// bcc
|
||||
|
||||
// Skipped for now:
|
||||
// btst_bchg_bclr_bset
|
||||
|
||||
- (void)setUp {
|
||||
// To limit tests run to a subset of files and/or of tests, uncomment and fill in below.
|
||||
_fileSet = [NSSet setWithArray:@[@"btst_bchg_bclr_bset.json"]];
|
||||
_fileSet = [NSSet setWithArray:@[@"chk.json"]];
|
||||
// _testSet = [NSSet setWithArray:@[@"Bcc 6206"]];
|
||||
// _fileSet = [NSSet setWithArray:@[@"jmp_jsr.json"]];
|
||||
// _testSet = [NSSet setWithArray:@[@"CHK 41a8"]];
|
||||
|
Loading…
x
Reference in New Issue
Block a user