1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +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")) { if(!strcmp(type, "VA")) {
// Test for validity. // 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)]; [false_invalids_ addObject:@(next_opcode)];
} }
continue; continue;
@ -57,7 +57,7 @@ class CPU::MC68000::ProcessorStorageTests {
if(!strcmp(type, "IN")) { if(!strcmp(type, "IN")) {
// Test for invalidity. // 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)]; [false_valids_ addObject:@(next_opcode)];
} }
continue; continue;

View File

@ -344,7 +344,8 @@ class ProcessorStorage {
remaining fields, with no additional padding being inserted by the compiler. remaining fields, with no additional padding being inserted by the compiler.
*/ */
struct Program { 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(); uint32_t micro_operations = std::numeric_limits<uint32_t>::max();
/// The overarching operation applied by this program when the moment comes. /// The overarching operation applied by this program when the moment comes.
Operation operation; Operation operation;