Advertisement
MichaelPetch

boot.asm

May 25th, 2020
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. BITS 16
  2. start:
  3. mov ax, 07C0h
  4. mov ax, 288
  5. mov ss, ax
  6. mov sp, 4096
  7.  
  8. mov ax, 07C0h
  9. mov ds, ax
  10. mov si, text_string
  11. call print_string
  12. jmp $ ; INFINITE LOOP
  13.  
  14.  
  15.  
  16. print_string:
  17. mov ax, boot_string
  18. .repeat:
  19. lodsb
  20. cmp al, 0
  21. je .done
  22. int 10h
  23. jmp .repeat
  24. .done:
  25. ret
  26.  
  27.  
  28.  
  29. times 510-($-$$) db 0
  30. dw 0xAA55
  31. boot_string db 'Starting Operating System...', 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement