diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-03-14 18:44:18 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-03-14 18:44:18 -0400 |
| commit | 0c81ee06d19d1d7f67dab3c2c9da268b0c55e3c0 (patch) | |
| tree | 9a10aae3c5de847ca1235c048d886c5b64929d80 /examples/instructions.s | |
| parent | ecffc124bbc5d6c9c089eb6d914565119d254a4d (diff) | |
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.
Diffstat (limited to 'examples/instructions.s')
| -rw-r--r-- | examples/instructions.s | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
