1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Add bad attempt to catch subfc.

This commit is contained in:
Thomas Harte 2022-03-28 20:18:41 -04:00
parent d84c72afe5
commit 8ad1f2d4f5
2 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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: {