diff options
| -rw-r--r-- | main.c | 4 | ||||
| -rw-r--r-- | parse.c | 4 | ||||
| -rw-r--r-- | test/test.sh | 1 |
3 files changed, 5 insertions, 4 deletions
@@ -792,8 +792,8 @@ static void assemble(void) { case ASM_JMP: { static uint8_t variant2op[31] = { 0xe9, 0x84, 0x88, 0x8b, 0x8a, 0x8a, 0x80, 0x85, 0x89, 0x8b, 0x81, - 0x8f, 0x8d, 0x8c, 0x8e, 0x85, 0x83, 0x83, 0x82, 0x86, 0x8e, 0x8c, - 0x8d, 0x8f, 0x84, 0x84, 0x82, 0x86, 0x82, 0x83, 0x87, + 0x8f, 0x8d, 0x8c, 0x8e, 0x85, 0x83, 0x87, 0x83, 0x82, 0x86, 0x8e, + 0x8c, 0x8d, 0x8f, 0x84, 0x82, 0x86, 0x82, 0x83, 0x87, }; if (v->jmp.variant) sb(0x0f); @@ -62,14 +62,14 @@ static String decodestring(char *s) { } else if (*s == 'x') { s++; c = strtoul(s, &end, 16); - s = end-1; + s = end - 1; } else if (*s == 'r') { c = '\r'; } else if (*s == 'n') { c = '\n'; } else if (*s == 't') { c = '\t'; - } else if (*s == '\\'){ + } else if (*s == '\\') { c = '\\'; } else { unreachable(); diff --git a/test/test.sh b/test/test.sh index 9f2cc0f..08db8b8 100644 --- a/test/test.sh +++ b/test/test.sh @@ -181,6 +181,7 @@ for cc in $conditioncodes do t "set${cc} %al" t "set${cc} (%rax)" + t "j${cc} $0xefffffff" done for op in sal sar shl shr |
