operator precedence fix in tests::test__registers
This commit is contained in:
parent
7393be12e2
commit
98c9ea4c1e
1 changed files with 5 additions and 5 deletions
10
tests.cpp
10
tests.cpp
|
@ -69,23 +69,23 @@ void test__registers(cpu *const c)
|
|||
|
||||
// PSW
|
||||
c -> reset();
|
||||
assert(c -> getPSW() == 0 | (7 << 5));
|
||||
assert(c -> getPSW() == (0 | (7 << 5)));
|
||||
|
||||
c -> reset();
|
||||
c -> setPSW_c(true);
|
||||
assert(c -> getPSW() == 1 | (7 << 5));
|
||||
assert(c -> getPSW() == (1 | (7 << 5)));
|
||||
|
||||
c -> reset();
|
||||
c -> setPSW_v(true);
|
||||
assert(c -> getPSW() == 2 | (7 << 5));
|
||||
assert(c -> getPSW() == (2 | (7 << 5)));
|
||||
|
||||
c -> reset();
|
||||
c -> setPSW_z(true);
|
||||
assert(c -> getPSW() == 4 | (7 << 5));
|
||||
assert(c -> getPSW() == (4 | (7 << 5)));
|
||||
|
||||
c -> reset();
|
||||
c -> setPSW_n(true);
|
||||
assert(c -> getPSW() == 8 | (7 << 5));
|
||||
assert(c -> getPSW() == (8 | (7 << 5)));
|
||||
|
||||
c -> reset();
|
||||
c -> setPSW_spl(1);
|
||||
|
|
Loading…
Add table
Reference in a new issue