]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
CPU tester next option.
authorToni Wilen <twilen@winuae.net>
Fri, 10 Jan 2020 20:25:00 +0000 (22:25 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 10 Jan 2020 20:25:00 +0000 (22:25 +0200)
cputest/main.c

index 66af492587048ba1ff1ef171fb1328a62928fe7e..c02c4a70c60bacaf21a1e46b675f1db467090b55 100644 (file)
@@ -125,6 +125,7 @@ static uae_u32 interrupt_mask;
 static int disasm;
 static int basicexcept;
 static int askifmissing;
+static int nextall;
 
 #define SIZE_STORED_ADDRESS_OFFSET 8
 #define SIZE_STORED_ADDRESS 16
@@ -2518,6 +2519,7 @@ int main(int argc, char *argv[])
                printf("mnemonic = test single mnemonic\n");
                printf("all = test all\n");
                printf("all <mnemonic> = test all, starting from <mnemonic>\n");
+               printf("all <mnemonic> next = test all, starting after <mnemonic>\n");
                printf("continue = don't stop on error (all mode only)\n");
                printf("ccrmask = ignore CCR bits that are not set.\n");
                printf("nodisasm = do not disassemble failed test.\n");
@@ -2567,6 +2569,8 @@ int main(int argc, char *argv[])
                        basicexcept = 1;
                } else if (!_stricmp(s, "askifmissing")) {
                        askifmissing = 1;
+               } else if (!_stricmp(s, "next")) {
+                       nextall = 1;
                }
        }
 
@@ -2643,6 +2647,9 @@ int main(int argc, char *argv[])
                                return 0;
                        }
                }
+               if (nextall) {
+                       first += MAX_FILE_LEN;
+               }
                for (int i = first; i < diroff; i += MAX_FILE_LEN) {
                        if (test_mnemo(dirs + i)) {
                                if (stop_on_error)