From 0c81ee06d19d1d7f67dab3c2c9da268b0c55e3c0 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 14 Mar 2026 18:44:18 -0400 Subject: feat: Initial parsing of instructions Initial ability to parse basic instructions. Currently hex numbers are broken and immediates with labels (movl $str, %ecx) are broken. --- examples/instructions.s | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/instructions.s (limited to 'examples/instructions.s') diff --git a/examples/instructions.s b/examples/instructions.s new file mode 100644 index 0000000..f16e6c1 --- /dev/null +++ b/examples/instructions.s @@ -0,0 +1,8 @@ +movl $4, %eax +movl $1, %ebx +movl $1, %eax +movl $0, %ebx +int $0x80 + +movl $str, %ecx +movl $str_len, %edx -- cgit v1.2.3