git.haldean.org x6502 / bb01063
Prevent unnecessary loading in debug_names.h Will Haldean Brown 8 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1818 #include <stdint.h>
1919
2020 char *inst_names[0x100];
21 char names_initialized = 0;
2122
2223 void init_names() {
24 if (names_initialized) {
25 return;
26 }
27 names_initialized = 1;
28
2329 for (int i = 0; i < 0xFF; i++) {
2430 inst_names[i] = "unknown";
2531 }