Advertisement
FlyFar

boot.asm

Jun 20th, 2023
810
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASM (NASM) 0.43 KB | Cybersecurity | 0 0
  1. [bits 16]
  2. [org 0x7c00]
  3.  
  4. mov bx, msg
  5. call print
  6.  
  7. jmp $
  8.  
  9. print:
  10.     pusha
  11.         start:
  12.             mov ah, 0x0e
  13.             mov al, [bx]
  14.             cmp al, 0
  15.             je end
  16.  
  17.             int 0x10
  18.             inc bx
  19.             jmp start
  20.         end:
  21.             ret
  22.     popa
  23.  
  24.  
  25. msg db "Communism deprives no man of the power to appropriate the products of society...", 0
  26.  
  27. times 510 - ($ - $$) db 0
  28. dw 0xaa55
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement