2020-06-13 04:01:24 +10:00
|
|
|
H@ ORG ! 0x7c00 BIN( ! ( BIOS loads boot bin at 0x7c00 )
|
2020-06-14 06:21:56 +10:00
|
|
|
JMPs, L1 FWRs ( start )
|
2020-06-14 01:47:32 +10:00
|
|
|
ORG @ 0x25 + HERE ! ( bypass BPB )
|
2020-06-13 04:01:24 +10:00
|
|
|
L1 FSET ( start )
|
2020-06-15 20:52:47 +10:00
|
|
|
CLI, CLD, AX 0x800 MOVxI, DS AX MOVsx, ES AX MOVsx,
|
2020-06-22 12:53:11 +10:00
|
|
|
SS AX MOVsx, DX PUSHx, ( will be popped by OS ) STI,
|
|
|
|
AH 2 MOVri, DH 0 MOVri, CH 0 MOVri, CL 2 MOVri, AL 15 MOVri,
|
2020-06-22 12:07:12 +10:00
|
|
|
BX 0 MOVxI, 0x13 INT, ( read sectors 2-15 of boot floppy )
|
2020-06-21 06:58:48 +10:00
|
|
|
( TODO: reading 12 sectors like this probably doesn't work
|
|
|
|
on real vintage PC/AT with floppy. Make this more robust. )
|
2020-06-14 10:06:51 +10:00
|
|
|
0x800 0 JMPf,
|
2020-06-14 01:47:32 +10:00
|
|
|
ORG @ 0x1fe + HERE ! 0x55 A, 0xaa A,
|