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:
parent
1327de1c82
commit
f2ae04597f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user