Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .bss
- .text
- .align 8
- .LC2:
- .string "%d = 12?, if 10 not false but not the gcc one"
- .LC1:
- .string "%d = 10? "
- .LC0:
- .string "%d = 12? "
- .text
- .globl main
- main:
- pushq %rbp
- movq %rsp, %rbp
- movq $12, -8(%rbp)
- movq $10, -16(%rbp)
- movq $1, %rcx
- cmp $0, %rcx
- jne .L0
- jmp .L1
- .L0:
- movq -8(%rbp), %rbx
- jmp .L2
- .L1:
- movq -16(%rbp), %rbx
- jmp .L2
- .L2:
- movq %rbx, %rsi
- leaq .LC0(%rip), %rdi
- movq $0, %rax
- call printf
- movq $0, %rax
- movq $0, %rcx
- cmp $0, %rcx
- jne .L3
- jmp .L4
- .L3:
- movq -8(%rbp), %rbx
- jmp .L5
- .L4:
- movq -16(%rbp), %rbx
- jmp .L5
- .L5:
- movq %rbx, %rsi
- leaq .LC1(%rip), %rdi
- movq $0, %rax
- call printf
- movq $0, %rax
- movq $18, %rcx
- cmp $0, %rcx
- jne .L6
- jmp .L7
- .L6:
- movq -8(%rbp), %rbx
- jmp .L8
- .L7:
- movq -16(%rbp), %rbx
- jmp .L8
- .L8:
- movq %rbx, %rsi
- leaq .LC2(%rip), %rdi
- movq $0, %rax
- call printf
- movq $0, %rax
- movq $0, %rax
- leave
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement