carl
This commit is contained in:
26
library/printBoolean_reg.s
Normal file
26
library/printBoolean_reg.s
Normal file
@ -0,0 +1,26 @@
|
||||
.file "printBoolean.c"
|
||||
.text
|
||||
.globl main
|
||||
.type main, @function
|
||||
main:
|
||||
.LFB0:
|
||||
pushq %rbp
|
||||
movq %rsp, %rbp
|
||||
|
||||
movb $1, %dil # the representation of 'true'
|
||||
call printBoolean
|
||||
movb $10, %dil
|
||||
call printCharacter
|
||||
|
||||
movb $0, %dil # the representation of 'false'
|
||||
call printBoolean
|
||||
movb $10, %dil
|
||||
call 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