Advertisement
GoToBread

Simple Bootloader

Mar 11th, 2013
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;simple bootloader:
  2.  
  3. ;puts data space for stack
  4. mov ax, 9ch
  5. mov ss, ax ;define where stack exists
  6. mov sp, 4096d ;define size of stack
  7. mov ax, 7c0h
  8. mov ds, ax
  9.  
  10. ;-code for OS:---------
  11. mov ah, 0eh ;print key from hex value
  12. mov al, 37h ;7 key
  13. int 10h
  14. jmp $ ;endless loop
  15.  
  16. ;---------------
  17. times 510-($-$$) db 0 ;zeros rest of fdd memory
  18. dw 0xAA55 ;boot signature
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement