Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "bool1.c"
- .intel_syntax noprefix
- .section .rodata
- .LC0:
- .string "p is true"
- .LC1:
- .string "p is not true"
- .LC2:
- .string "p is false"
- .LC3:
- .string "p is not false"
- .text
- .globl main
- .type main, @function
- main:
- .LFB0:
- push rbp
- .LCFI0:
- mov rbp, rsp
- .LCFI1:
- sub rsp, 32
- .LCFI2:
- mov DWORD PTR [rbp-20], edi
- mov QWORD PTR [rbp-32], rsi
- movzx eax, BYTE PTR [rbp-1]
- test al, al
- je .L2
- mov edi, OFFSET FLAT:.LC0
- call puts
- jmp .L3
- .L2:
- mov edi, OFFSET FLAT:.LC1
- call puts
- .L3:
- movzx eax, BYTE PTR [rbp-1]
- xor eax, 1
- test al, al
- je .L4
- mov edi, OFFSET FLAT:.LC2
- call puts
- jmp .L5
- .L4:
- mov edi, OFFSET FLAT:.LC3
- call puts
- .L5:
- mov eax, 0
- leave
- .LCFI3:
- ret
Add Comment
Please, Sign In to add comment