diff options
| author | hachem <im@hachem.wtf> | 2026-09-06 04:12:25 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-06 04:12:25 +0200 |
| commit | 054d372a716bca4f628674e524e3d027f6824019 (patch) | |
| tree | f1b8a86430476b4aed8173857bdab0f960e5fdb1 /aoc-2025/utils/parse.asm | |
| parent | 78c4d3d06d8e863cfe2489281ccfe206544cbd7f (diff) | |
refactor: clean up repository layout
Diffstat (limited to 'aoc-2025/utils/parse.asm')
| -rw-r--r-- | aoc-2025/utils/parse.asm | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/aoc-2025/utils/parse.asm b/aoc-2025/utils/parse.asm deleted file mode 100644 index 833cb4e..0000000 --- a/aoc-2025/utils/parse.asm +++ /dev/null @@ -1,22 +0,0 @@ -; utils/parse.asm - decimal parsing helper. - -section .text - -; parse_u64: read decimal digits at [RSI] into RAX, advancing RSI past them. -; Stops on the first non-digit. Clobbers RAX, RDX. -parse_u64: - xor rax, rax -.digit: - mov dl, [rsi] - cmp dl, '0' - jl .done - cmp dl, '9' - jg .done - sub dl, '0' - movzx rdx, dl - imul rax, rax, 10 - add rax, rdx - inc rsi - jmp .digit -.done: - ret |
