diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-09 17:03:24 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-09 17:03:24 +0100 |
commit | c486618ae83fa7c822b29ab7f3f6f8f119112dd6 (patch) | |
tree | ba9cd35b864a843efa6dcd4bb63ea8e8525f02fb /tr8as.c | |
parent | 00f66fd0d5de41b4c2fdaa7ec2ddf42d041e6af4 (diff) | |
download | tr8vm-c486618ae83fa7c822b29ab7f3f6f8f119112dd6.tar.gz tr8vm-c486618ae83fa7c822b29ab7f3f6f8f119112dd6.zip |
More sensible check
Diffstat (limited to 'tr8as.c')
-rw-r--r-- | tr8as.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -318,13 +318,13 @@ done: static uint8_t parse_register(char *word) { - if (!strcasecmp(word, "a")) + if ((*word == 'a' || *word == 'A') && word[1] == 0) return 0; - if (!strcasecmp(word, "b")) + if ((*word == 'b' || *word == 'B') && word[1] == 0) return 1; - if (!strcasecmp(word, "x")) + if ((*word == 'x' || *word == 'X') && word[1] == 0) return 2; - if (!strcasecmp(word, "y")) + if ((*word == 'y' || *word == 'Y') && word[1] == 0) return 3; return 0xff; |