Mirror of CollapseOS
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.

13 lines
531B

  1. H@ ORG ! 0x7c00 BIN( ! ( BIOS loads boot bin at 0x7c00 )
  2. JMPs, L1 FWRs ( start )
  3. ORG @ 0x25 + HERE ! ( bypass BPB )
  4. L1 FSET ( start )
  5. CLI, CLD, AX 0x800 MOVxI, DS AX MOVsx, ES AX MOVsx,
  6. SS AX MOVsx, DX PUSHx, ( will be popped by OS ) STI,
  7. AH 2 MOVri, DH 0 MOVri, CH 0 MOVri, CL 2 MOVri, AL 15 MOVri,
  8. BX 0 MOVxI, 0x13 INT, ( read sectors 2-15 of boot floppy )
  9. ( TODO: reading 12 sectors like this probably doesn't work
  10. on real vintage PC/AT with floppy. Make this more robust. )
  11. 0x800 0 JMPf,
  12. ORG @ 0x1fe + HERE ! 0x55 A, 0xaa A,