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-06 21:18:22 +10:00
|
|
|
.LC0: db "Hello, World!", 10, 0
|
2025-09-06 20:54:17 +10:00
|
|
|
.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-06 21:18:22 +10:00
|
|
|
; InstructionNode(instruction='set', parent=RootNode(statements=[..., InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, Int]), InstructionNode(instruction='stdout', parent=..., arguments=[VariableReference]), InstructionNode(instruction='end', parent=..., arguments=[VariableReference])]), arguments=[VariablePointer, String])
|
2025-09-06 20:54:17 +10:00
|
|
|
lea rax, [.LC0]
|
|
|
|
push rax
|
2025-09-06 21:08:14 +10:00
|
|
|
mov rax, .LC1
|
2025-09-06 20:54:17 +10:00
|
|
|
push rax
|
2025-09-06 21:18:22 +10:00
|
|
|
; InstructionNode(instruction='set', parent=RootNode(statements=[InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, String]), ..., InstructionNode(instruction='stdout', parent=..., arguments=[VariableReference]), InstructionNode(instruction='end', parent=..., arguments=[VariableReference])]), arguments=[VariablePointer, Int])
|
2025-09-06 20:54:17 +10:00
|
|
|
mov rax, 123
|
|
|
|
push rax
|
2025-09-06 21:18:22 +10:00
|
|
|
; InstructionNode(instruction='stdout', parent=RootNode(statements=[InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, String]), InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, Int]), ..., InstructionNode(instruction='end', parent=..., arguments=[VariableReference])]), arguments=[VariableReference])
|
2025-09-06 20:54:17 +10:00
|
|
|
mov rsi, [rsp + 16]
|
2025-09-06 21:08:14 +10:00
|
|
|
mov rdx, [rsp + 8]
|
2025-09-06 20:54:17 +10:00
|
|
|
mov rax, 1
|
|
|
|
mov rdi, 1
|
|
|
|
syscall
|
2025-09-06 21:18:22 +10:00
|
|
|
; InstructionNode(instruction='end', parent=RootNode(statements=[InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, String]), InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, Int]), InstructionNode(instruction='stdout', parent=..., arguments=[VariableReference]), ...]), arguments=[VariableReference])
|
2025-09-06 20:54:17 +10:00
|
|
|
mov rax, 60
|
|
|
|
mov rdi, [rsp + 0]
|
|
|
|
syscall
|
2025-09-02 06:42:58 +10:00
|
|
|
|