summaryrefslogtreecommitdiff
path: root/asmmon.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2019-12-13 13:14:24 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2019-12-13 13:14:24 -0500
commitc6d71bcf0e545a490fdeb0dfcafea2d5a02157c6 (patch)
tree559eefbfde2cdddfe33a6b59950f3db56a3def78 /asmmon.c
parent9526483f93b5950ecfa81a93f30b617bec22dfe1 (diff)
Added support for specifying the number of bytes as
the suffix. I added this because BieHDC said the already existing notation glowed in the dark too much.
Diffstat (limited to 'asmmon.c')
-rw-r--r--asmmon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/asmmon.c b/asmmon.c
index 43811f7..7467985 100644
--- a/asmmon.c
+++ b/asmmon.c
@@ -570,11 +570,11 @@ int asmmon() {
}
}
if (postfix != NULL && !(done & 8)) {
- if (strcasecmp(postfix, "w") == 0) {
+ if (!strcasecmp(postfix, "w") || !strcasecmp(postfix, "2")) {
addr[address++] = 0x17;
- } else if (strcasecmp(postfix, "d") == 0) {
+ } else if (!strcasecmp(postfix, "d") || !strcasecmp(postfix, "4")) {
addr[address++] = 0x27;
- } else if (strcasecmp(postfix, "q") == 0) {
+ } else if (!strcasecmp(postfix, "q") || !strcasecmp(postfix, "8")) {
addr[address++] = 0x37;
} else {
done |=8;