1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Correct CMPw.

This commit is contained in:
Thomas Harte 2022-05-03 09:05:34 -04:00
parent 1bb809098c
commit 2f2d6bc08b
2 changed files with 3 additions and 2 deletions

View File

@ -350,7 +350,7 @@ template <
case Operation::CMPw: {
const uint16_t source = src.w;
const uint16_t destination = src.w;
const uint16_t destination = dest.w;
const int result = destination - source;
status.zero_result_ = result & 0xffff;

View File

@ -28,7 +28,8 @@
- (void)setUp {
// To limit tests run to a subset of files and/or of tests, uncomment and fill in below.
_fileSet = [NSSet setWithArray:@[@"add_sub.json"]];
_fileSet = [NSSet setWithArray:@[@"eor_and_or.json"]];
// _testSet = [NSSet setWithArray:@[@"OR 8103"]];
// _fileSet = [NSSet setWithArray:@[@"jmp_jsr.json"]];
// _testSet = [NSSet setWithArray:@[@"CHK 41a8"]];
}