Advertisement
DarkAtom77

Hello world Assembly x86-16 (MS-DOS, Tiny Memory Model)

May 28th, 2020
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Hello world program
  2. ; Language: x86 (16-bit) Assembly (Tiny Memory Model)
  3. ; Library: MS-DOS interrupts
  4.  
  5. org 0x100
  6.  
  7. section .text
  8.     mov dx, message
  9.     mov ah, 0x9
  10.     int 0x21
  11.     mov ax, 0x4C00
  12.     int 0x21
  13.  
  14. section .data
  15.     message db 'Hello world!', 0xD, 0xA, '$'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement