aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-07 20:41:13 +1300
committerAndrew Chambers <[email protected]>2021-10-07 20:41:13 +1300
commit34c94563338da7c2ba7ca3a3e41cd14a10a1ad2f (patch)
tree441d1b0ae06a6bab90c4dc1c46ec8d716c690a88 /main.c
parent0e32e456f40a4069c626f941e02d4fc305a5388a (diff)
Add lea.
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/main.c b/main.c
index eda2818..51272cc 100644
--- a/main.c
+++ b/main.c
@@ -398,11 +398,9 @@ static void assemble() {
case ASM_RET:
sb(0xc3);
break;
- /*
- case ASM_MOVZX:
- case ASM_MOVSX:
- case ASM_LEA:
- */
+ case ASM_LEA:
+ assemblerrm(&v->instr, 0x8d);
+ break;
case ASM_ADD: {
static uint8_t variant2op[24] = {
0x04, 0x05, 0x05, 0x05, 0x00, 0x00, 0x00, 0x00,