aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-11 12:03:17 +1300
committerAndrew Chambers <[email protected]>2021-10-11 12:03:17 +1300
commit01b5a69f2d7e7ec041064e88d0789ad6d6bc92eb (patch)
treec93bfa1a6bda4960a0361ef252e48c7fae08ec6e /main.c
parentdd694b1efdf09eeb063807a94305c5e933d4fea9 (diff)
Add more references.
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/main.c b/main.c
index 81f31fb..7c796d6 100644
--- a/main.c
+++ b/main.c
@@ -500,12 +500,8 @@ static void assemblemem(Memarg *memarg, uint8_t rexw, Opcode opcode,
}
/* If our base is a bp register, we must use the index instead. */
- if ((base & 7) == 5) {
- if (memarg->index == ASM_NO_REG) {
- index = base;
- } else {
- // lfatal("bp cannot be used as an addressing base");
- }
+ if ((base & 7) == 5 && memarg->index == ASM_NO_REG) {
+ index = base;
}
switch (memarg->scale) {