Guest User

comparação

a guest
May 24th, 2025
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASM (NASM) 0.89 KB | Source Code | 0 0
  1. section .date
  2.         msg1 db 'access accept', 0xA, 0xD
  3.         msg2 db 'access denied', 0xA, 0xD
  4.         tam1 equ $- msg1
  5.         tam2 equ $- msg2
  6.         x dd 50
  7.         y dd 10
  8. section .text
  9.  
  10. global _start
  11. _start:
  12.         mov eax, [x]
  13.         mov ebx, [y]
  14.         cmp eax, ebx
  15.         jne maior
  16.         mov ecx, msg2
  17.         mov edx, tam2
  18.         jmp fim
  19. maior:
  20.         mov eax, 0x4
  21.         mov ebx, 0x1
  22.         mov ecx, msg1
  23.         mov edx, tam1
  24.         int 0x80
  25. fim:
  26.         mov eax, 0x1
  27.         mov ebx, 0x0
  28.         int 0x80
  29. ~                                                                                                              
  30. ~                                                                                                              
  31. ~                                                                                                              
  32.            
Advertisement
Add Comment
Please, Sign In to add comment