Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "DEVICE.c"
- .intel_syntax noprefix
- .text
- .globl main
- .type main, @function
- ;...
- .L2:
- mov BYTE PTR [rbp-53], 0
- mov BYTE PTR [rbp-54], 0
- mov BYTE PTR [rbp-55], 0
- mov WORD PTR [rbp-58], 0
- mov WORD PTR [rbp-60], 0
- mov WORD PTR [rbp-62], 0
- mov DWORD PTR [rbp-68], 0
- mov BYTE PTR [rbp-53], 0
- mov BYTE PTR [rbp-54], 0
- mov WORD PTR [rbp-58], 0
- mov WORD PTR [rbp-60], 3320
- mov WORD PTR [rbp-62], 3324
- mov BYTE PTR [rbp-69], 0
- .L3:
- mov WORD PTR [rbp-72], 0
- .L4:
- mov BYTE PTR [rbp-73], 0
- .L5:
- #APP
- # 55 "DEVICE.c" 1
- mov ax, 32768
- # 0 "" 2
- # 56 "DEVICE.c" 1
- or al, [BYTE PTR [rbp-69]]
- # 0 "" 2
- # 57 "DEVICE.c" 1
- shl eax, 16
- # 0 "" 2
- # 58 "DEVICE.c" 1
- mov ax, [WORD PTR [rbp-72]]
- # 0 "" 2
- # 59 "DEVICE.c" 1
- shl ax, 11
- # 0 "" 2
- # 60 "DEVICE.c" 1
- mov al, [BYTE PTR [rbp-73]]
- # 0 "" 2
- # 61 "DEVICE.c" 1
- or ah, al
- # 0 "" 2
- # 62 "DEVICE.c" 1
- cli
- # 0 "" 2
- # 63 "DEVICE.c" 1
- mov dx, 0x0CF8
- # 0 "" 2
- # 64 "DEVICE.c" 1
- out dx, eax
- # 0 "" 2
- # 65 "DEVICE.c" 1
- mov dx, 0x0CFC
- # 0 "" 2
- # 66 "DEVICE.c" 1
- in eax, dx
- # 0 "" 2
- # 67 "DEVICE.c" 1
- mov [DWORD PTR [rbp-68]], eax
- # 0 "" 2
- # 68 "DEVICE.c" 1
- sti
- # 0 "" 2
- #NO_APP
- mov eax, DWORD PTR [rbp-68]
- mov eax, eax
- movzx eax, ax
- cmp rax, 65535
- ; DEVICE FOUND!
- je .L20
- mov edi, -1
- jmp .L9
- .L7:
- .L8:
- .L20:
- nop
- .L9:
- movzx eax, BYTE PTR [rbp-73]
- add eax, 1
- mov BYTE PTR [rbp-73], al
- .L10:
- movzx eax, BYTE PTR [rbp-73]
- cmp al, 7
- ja .L12
- jmp .L5
- .L11:
- .L12:
- movzx eax, WORD PTR [rbp-72]
- add eax, 1
- mov WORD PTR [rbp-72], ax
- .L13:
- movzx eax, WORD PTR [rbp-72]
- cmp ax, 31
- ja .L15
- jmp .L4
- .L14:
- .L15:
- movzx eax, BYTE PTR [rbp-69]
- add eax, 1
- mov BYTE PTR [rbp-69], al
- .L16:
- movzx eax, BYTE PTR [rbp-69]
- cmp al, -1
- je .L18
- jmp .L3
- .L17:
- .L18:
- mov edi, 0
- call fb_End
- mov eax, DWORD PTR [rbp-52]
- add rsp, 56
- pop rbx
- pop r12
- pop r13
- pop r14
- pop r15
- pop rbp
- ret
- .size main, .-main
- .ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement