optimizer fixed 👍

This commit is contained in:
SpookyDervish
2025-09-09 17:47:43 +10:00
parent 132ed8ed12
commit c2bdf555e4
6 changed files with 17 additions and 24 deletions

16
out.asm
View File

@@ -5,15 +5,11 @@ section .text
global _start
_start:
push 0
push 1
.loop:
mov rax, [rsp + 8]
add rax, 1
mov QWORD [rsp + 8], rax
mov rax, 100000000
mov rbx, [rsp + 8]
cmp rax, rbx
jg .loop
mov rax, 1000
cmp rax, [rsp + 0]
setg al
movzx rax, al
push rax
mov rax, 60
mov rdi, [rsp + 8]
mov rdi, [rsp + 0]
syscall