You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

boot.asm 533B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. org 0x7c00
  2. base equ 0x7c00
  3. msg db "too young too simple"
  4. ;mov ax, cs
  5. ;mov ds, ax
  6. ;mov es, ax
  7. ;mov ss, ax
  8. mov sp, base
  9. clear:
  10. mov ax, 0x0600
  11. mov bx, 0x0700
  12. mov cx, 0
  13. mov dx, 0xffff
  14. int 0x10
  15. jmp focus
  16. focus:
  17. mov ax, 0x0200
  18. mov bx, 0
  19. mov dx, 0x0505
  20. int 0x10
  21. jmp elder
  22. elder:
  23. mov ax, 0x1301
  24. mov bx, 0x000f
  25. mov dx, 0x1010
  26. mov bx, 0x0002
  27. mov cx, 20
  28. ;push ax
  29. ;mov ax, ds
  30. ;mov es, ax
  31. ;pop ax
  32. mov bp, msg
  33. int 0x10
  34. jmp start
  35. start:
  36. jmp clear
  37. call start
  38. times 510 - ($ - $$) db 0
  39. dw 0xaa55