Files
GroundPY/out.asm
2025-09-08 20:21:36 +10:00

35 lines
485 B
NASM

; ~~~ Auto generated by the GroundPY compiler for Linux x86_64 targets. ~~~
section .data
.LC0: db "yes", 10, 0
.LC1: equ $ - .LC0
.LC2: db "no", 10, 0
.LC3: equ $ - .LC2
section .text
global _start
_start:
mov rax, 123
push rax
mov rax, 100000000
mov rbx, [rsp + 0]
cmp rax, rbx
jg .yes
.yes:
mov rsi, .LC0
mov rdx, .LC1
mov rax, 1
mov rdi, 1
syscall
mov rax, 60
mov rdi, 0
syscall
.no:
mov rsi, .LC2
mov rdx, .LC3
mov rax, 1
mov rdi, 1
syscall
mov rax, 60
mov rdi, 0
syscall