38 lines
2.5 KiB
NASM
38 lines
2.5 KiB
NASM
; ~~~ Auto generated by the GroundPY compiler for Linux x86_64 targets. ~~~
|
|
|
|
section .data
|
|
.LC0: db "hiii", 0
|
|
.LC1: equ $ - .LC0
|
|
.LC2: db "", 10, 0
|
|
.LC3: equ $ - .LC2
|
|
|
|
section .text
|
|
global _start
|
|
|
|
_start:
|
|
; InstructionNode(instruction='set', parent=RootNode(statements=[..., InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, String]), InstructionNode(instruction='stdout', parent=..., arguments=[VariableReference]), InstructionNode(instruction='stdout', parent=..., arguments=[String]), InstructionNode(instruction='end', parent=..., arguments=[Int])]), arguments=[VariablePointer, Int])
|
|
mov rax, 123
|
|
push rax
|
|
; InstructionNode(instruction='set', parent=RootNode(statements=[InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, Int]), ..., InstructionNode(instruction='stdout', parent=..., arguments=[VariableReference]), InstructionNode(instruction='stdout', parent=..., arguments=[String]), InstructionNode(instruction='end', parent=..., arguments=[Int])]), arguments=[VariablePointer, String])
|
|
mov QWORD [rsp + 0], 0
|
|
lea rax, [.LC0]
|
|
push rax
|
|
mov rax, .LC1
|
|
push rax
|
|
; InstructionNode(instruction='stdout', parent=RootNode(statements=[InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, Int]), InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, String]), ..., InstructionNode(instruction='stdout', parent=..., arguments=[String]), InstructionNode(instruction='end', parent=..., arguments=[Int])]), arguments=[VariableReference])
|
|
mov rsi, [rsp + 8]
|
|
mov rdx, [rsp + 0]
|
|
mov rax, 1
|
|
mov rdi, 1
|
|
syscall
|
|
; InstructionNode(instruction='stdout', parent=RootNode(statements=[InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, Int]), InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, String]), InstructionNode(instruction='stdout', parent=..., arguments=[VariableReference]), ..., InstructionNode(instruction='end', parent=..., arguments=[Int])]), arguments=[String])
|
|
mov rsi, .LC2
|
|
mov rdx, .LC3
|
|
mov rax, 1
|
|
mov rdi, 1
|
|
syscall
|
|
; InstructionNode(instruction='end', parent=RootNode(statements=[InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, Int]), InstructionNode(instruction='set', parent=..., arguments=[VariablePointer, String]), InstructionNode(instruction='stdout', parent=..., arguments=[VariableReference]), InstructionNode(instruction='stdout', parent=..., arguments=[String]), ...]), arguments=[Int])
|
|
mov rax, 60
|
|
mov rdi, 0
|
|
syscall
|
|
|