carl
This commit is contained in:
22
library/printInt_reg.s
Normal file
22
library/printInt_reg.s
Normal file
@ -0,0 +1,22 @@
|
||||
.file "printInt.c"
|
||||
.text
|
||||
.globl main
|
||||
.type main, @function
|
||||
main:
|
||||
.LFB0:
|
||||
pushq %rbp
|
||||
movq %rsp, %rbp
|
||||
|
||||
movl $10, %edi # Move the immediate value 10 to %edi
|
||||
call printInteger # call the alpha_lib function printInteger
|
||||
|
||||
movl $10, %edi # Put the \n character (decimal 10) into %edi
|
||||
call printCharacter # then call the alpha_lib function printCharacter
|
||||
|
||||
movl $0, %eax
|
||||
popq %rbp
|
||||
ret
|
||||
.LFE0:
|
||||
.size main, .-main
|
||||
.ident "GCC: (GNU) 6.4.0"
|
||||
.section .note.GNU-stack,"",@progbits
|
Reference in New Issue
Block a user