# This is a 15-byte boot "sector".

# Clone loads 512 bytes of colorgOS off a floppy and jumps to it.
## This code then loads the first cylinder of the floppy over itself.
## i.e. the floppy load transparently clobbers the running code, but
## EIP is actually in BIOS ROM during the write. Reloading right 
#	from 0x7c00 is simplest though.

here=0 cell=2				# HELP! I'M AN 8086!
allot 0x7C00                            # we'll clip $output so 0x7c00 is 0.
					# Huge win for assembler simplicity.

                                        # _start of machine instructions
= $((512+40)) to A                      # BIOS INT 0x13 AH=2 + AL=sectors
= 1 to  C                               # sector 1
zero D                                  # head 0
= D to ES				#
= 0x7c00 to B                           # overlaying ourself.
submit 0x13                             #

# I think my Compaq leaves ES <> 0. There may be issues per machine with the 
#   sector count in AL also. Figure 18k loadable this way.


