THE ADD FUNCTION COMPILES!!!!!
This commit is contained in:
20
out.asm
20
out.asm
@@ -1,29 +1,23 @@
|
||||
; ~~~ Auto generated by the GroundPY compiler for Linux x86_64 targets. ~~~
|
||||
|
||||
section .data
|
||||
.LC0: db "this was called by a function!!!!", 10, 0
|
||||
.LC1: equ $ - .LC0
|
||||
section .text
|
||||
global _start
|
||||
_start:
|
||||
sub rsp, 8
|
||||
mov rdi, 115
|
||||
call test
|
||||
add rsp, 8
|
||||
mov rdi, 2
|
||||
mov rsi, 3
|
||||
call add
|
||||
add rsp, 16
|
||||
push rax
|
||||
mov rax, 60
|
||||
mov rdi, [rsp + 0]
|
||||
syscall
|
||||
test:
|
||||
add:
|
||||
push rbp
|
||||
mov rbp, rsp
|
||||
mov rsi, .LC0
|
||||
mov rdx, .LC1
|
||||
push rdi
|
||||
mov rax, 1
|
||||
mov rdi, 1
|
||||
syscall
|
||||
pop rdi
|
||||
mov rax, rdi
|
||||
mov rbx, rsi
|
||||
add rax, rbx
|
||||
pop rbp
|
||||
ret
|
||||
|
Reference in New Issue
Block a user