mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Add bad attempt to catch subfc.
This commit is contained in:
@@ -315,7 +315,15 @@ enum class Operation: uint8_t {
|
||||
/// i.e. if rA() is 0 then the value 0 is used, not the contents of r0.
|
||||
stwx,
|
||||
|
||||
subfx, subfcx,
|
||||
subfx,
|
||||
|
||||
/// Subtract from carrying.
|
||||
/// subfc, subfc., subfco, subfco.
|
||||
///
|
||||
/// rD() = -rA() +rB() + 1
|
||||
///
|
||||
/// oe(), rc() apply.
|
||||
subfcx,
|
||||
subfex,
|
||||
|
||||
/// Subtract from immediate carrying
|
||||
|
@@ -116,6 +116,17 @@ void AssertEqualOperationName(NSString *lhs, NSString *rhs) {
|
||||
|
||||
#undef ABCz
|
||||
|
||||
#define ABD(x) \
|
||||
case Operation::x: \
|
||||
AssertEqualOperationName(operation, @#x); \
|
||||
[self testABDInstruction:instruction columns:columns testZero:NO]; \
|
||||
break;
|
||||
|
||||
// ABD(subfc);
|
||||
// ABD(subfc_);
|
||||
|
||||
#undef ABD
|
||||
|
||||
case Operation::bcx:
|
||||
case Operation::bclrx:
|
||||
case Operation::bcctrx: {
|
||||
|
Reference in New Issue
Block a user