Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section .date
- msg1 db 'access accept', 0xA, 0xD
- msg2 db 'access denied', 0xA, 0xD
- tam1 equ $- msg1
- tam2 equ $- msg2
- x dd 50
- y dd 10
- section .text
- global _start
- _start:
- mov eax, [x]
- mov ebx, [y]
- cmp eax, ebx
- jne maior
- mov ecx, msg2
- mov edx, tam2
- jmp fim
- maior:
- mov eax, 0x4
- mov ebx, 0x1
- mov ecx, msg1
- mov edx, tam1
- int 0x80
- fim:
- mov eax, 0x1
- mov ebx, 0x0
- int 0x80
- ~
- ~
- ~
Advertisement
Add Comment
Please, Sign In to add comment