Removed runes

This commit is contained in:
neauoire 2022-04-11 17:27:33 -07:00
parent a3c42c23b9
commit d49981c4ce
1 changed files with 0 additions and 6 deletions

View File

@ -54,8 +54,6 @@ static char ops[][4] = {
"LDZ", "STZ", "LDR", "STR", "LDA", "STA", "DEI", "DEO", "LDZ", "STZ", "LDR", "STR", "LDA", "STA", "DEI", "DEO",
"ADD", "SUB", "MUL", "DIV", "AND", "ORA", "EOR", "SFT" "ADD", "SUB", "MUL", "DIV", "AND", "ORA", "EOR", "SFT"
}; };
static char symchr[] = {'?', '!', '>', '<', '+', '-', '*', '/'};
static Uint8 symval[] = {0x08, 0x09, 0x0a, 0x0b, 0x18, 0x19, 0x1a, 0x1b};
static int scmp(char *a, char *b, int len) { int i = 0; while(a[i] == b[i]) if(!a[i] || ++i >= len) return 1; return 0; } /* string compare */ static int scmp(char *a, char *b, int len) { int i = 0; while(a[i] == b[i]) if(!a[i] || ++i >= len) return 1; return 0; } /* string compare */
static int sihx(char *s) { int i = 0; char c; while((c = s[i++])) if(!(c >= '0' && c <= '9') && !(c >= 'a' && c <= 'f')) return 0; return i > 1; } /* string is hexadecimal */ static int sihx(char *s) { int i = 0; char c; while((c = s[i++])) if(!(c >= '0' && c <= '9') && !(c >= 'a' && c <= 'f')) return 0; return i > 1; } /* string is hexadecimal */
@ -126,10 +124,6 @@ findopcode(char *s)
if(!i) i |= (1 << 7); /* force keep for LIT */ if(!i) i |= (1 << 7); /* force keep for LIT */
return i |= findmode(s + 3); return i |= findmode(s + 3);
} }
for(i = 0; i < 0x08; ++i) {
if(s[0] == symchr[i])
return symval[i] |= findmode(s + 1);
}
return 0; return 0;
} }