Skip to content
Snippets Groups Projects
Commit 20c255e3 authored by Pedro Martins e Sá's avatar Pedro Martins e Sá :metal_tone4:
Browse files

Replace meu_malloc.s

parent abcc1038
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,7 @@
str6: .string "ENTRADA INVALIDA!\n"
pula_Linha: .string "\n"
flag: .string "%d" #############APAGARRRRRRRR##########
flaag: .string "%d, %d \n" #############APAGARRRRRRRR##########
oi: .string "oi\n" #############APAGARRRRRRRR##########
flag: .string "%d"
.section .bss
.equ ALOCADOR, 1040
......@@ -27,6 +25,7 @@
.globl liberaMem
.globl print_mapa
#---------------------------------------------------------------------#
iniciaAlocador:
pushq %rbp
movq %rsp, %rbp
......@@ -55,6 +54,7 @@ iniciaAlocador:
popq %rbp
ret
#---------------------------------------------------------------------#
finalizaAlocador:
pushq %rbp
movq %rsp, %rbp
......@@ -74,6 +74,7 @@ finalizaAlocador:
popq %rbp
ret
#---------------------------------------------------------------------#
aloca_espaco:
pushq %rbp
movq %rsp, %rbp
......@@ -88,6 +89,7 @@ aloca_espaco:
popq %rbp
ret
#---------------------------------------------------------------------#
alocaMem:
pushq %rbp
movq %rsp, %rbp
......@@ -152,6 +154,7 @@ alocaMem:
popq %rbp
ret
#---------------------------------------------------------------------#
arruma_heap:
pushq %rbp
movq %rsp, %rbp
......@@ -191,15 +194,11 @@ arruma_heap:
jmp while_arruma_heap
fim_while_arruma_heap:
#movq $flaag, %rdi
#movq (%rax), %rsi
#movq (%rbx), %rdx
#call printf
addq $16, %rsp
popq %rbp
ret
#---------------------------------------------------------------------#
liberaMem:
pushq %rbp
movq %rsp, %rbp
......@@ -211,6 +210,7 @@ liberaMem:
popq %rbp
ret
#---------------------------------------------------------------------#
print_mapa:
pushq %rbp
movq %rsp, %rbp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment