1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-01 13:58:20 +00:00

Updates test case.

This commit is contained in:
Thomas Harte 2019-07-24 22:07:17 -04:00
parent 1327de1c82
commit f2ae04597f
2 changed files with 4 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class CPU::MC68000::ProcessorStorageTests {
if(!strcmp(type, "VA")) {
// Test for validity.
if(!storage.instructions[next_opcode].micro_operations) {
if(storage.instructions[next_opcode].micro_operations == std::numeric_limits<uint32_t>::max()) {
[false_invalids_ addObject:@(next_opcode)];
}
continue;
@ -57,7 +57,7 @@ class CPU::MC68000::ProcessorStorageTests {
if(!strcmp(type, "IN")) {
// Test for invalidity.
if(storage.instructions[next_opcode].micro_operations) {
if(storage.instructions[next_opcode].micro_operations != std::numeric_limits<uint32_t>::max()) {
[false_valids_ addObject:@(next_opcode)];
}
continue;

View File

@ -344,7 +344,8 @@ class ProcessorStorage {
remaining fields, with no additional padding being inserted by the compiler.
*/
struct Program {
/// The offset into the all_micro_ops_ at which micro-ops for this instruction begin.
/// The offset into the all_micro_ops_ at which micro-ops for this instruction begin,
/// or std::numeric_limits<uint32_t>::max() if this is an invalid Program.
uint32_t micro_operations = std::numeric_limits<uint32_t>::max();
/// The overarching operation applied by this program when the moment comes.
Operation operation;