Files
GroundPY/out.asm

28 lines
407 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 18:56:45 +10:00
sub rsp, 8
mov rdi, 115
2025-09-10 07:30:58 +10:00
call test
2025-09-10 18:56:45 +10:00
add rsp, 8
push rax
mov rax, 60
mov rdi, [rsp + 0]
syscall
2025-09-10 07:30:58 +10:00
test:
2025-09-10 18:56:45 +10:00
push rbp
mov rbp, rsp
2025-09-10 07:30:58 +10:00
mov rsi, .LC0
mov rdx, .LC1
mov rax, 1
mov rdi, 1
syscall
mov rax, 123
2025-09-10 18:56:45 +10:00
pop rbp
2025-09-10 07:30:58 +10:00
ret