Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [BITS 16]
- start:
- mov ax, 07C0h
- add ax, 288
- mov ss, ax
- mov sp, 4096
- mov ax, 07C0h
- mov ds, ax
- mov si, text_string
- call print_string
- jmp $
- text_string db 'Hello World!', 0
- print_string:
- mov ah, 0Eh
- .repeat:
- lodsb
- cmp al, 0
- je .done
- int 10h
- jmp .repeat
- .done:
- ret
- times 510-($-$$) db 0
- dw 0xAA55
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement