Files
GroundPY/out.asm

26 lines
410 B
NASM
Raw Normal View History

2025-09-06 21:18:22 +10:00
; ~~~ Auto generated by the GroundPY compiler for Linux x86_64 targets. ~~~
2025-09-04 07:45:20 +10:00
section .data
2025-09-10 07:30:58 +10:00
.LC0: db "this was called by a function!!!!", 10, 0
.LC1: equ $ - .LC0
2025-09-04 07:45:20 +10:00
section .text
2025-09-02 06:42:58 +10:00
global _start
_start:
2025-09-10 07:30:58 +10:00
call test
push 2
push 3
2025-09-09 18:03:58 +10:00
mov rax, [rsp + 8]
2025-09-10 07:30:58 +10:00
mov rbx, [rsp + 0]
add rax, rbx
2025-09-09 18:03:58 +10:00
mov QWORD [rsp + 8], rax
mov rax, 60
2025-09-10 07:30:58 +10:00
mov rdi, [rsp + 8]
syscall
2025-09-10 07:30:58 +10:00
test:
mov rsi, .LC0
mov rdx, .LC1
mov rax, 1
mov rdi, 1
syscall
ret