From c6d71bcf0e545a490fdeb0dfcafea2d5a02157c6 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 13 Dec 2019 13:14:24 -0500 Subject: 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. --- asmmon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asmmon.c') 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; -- cgit v1.2.3-13-gbd6f