A floppy boot code, and a screen display:;Hello-os;tab=4 TAB key for broadband;standard FAT12 format floppy disk-specific code stand FAT12 format floppy code the floppy disk formatted with Windows is this formatdb 0xeb, 0x4e, 0x90 db"HELLOIPL" ;Boot Sector name (8 bytes) The first sector of the floppy disk is referred to as ScanDisk, and a sector = 512 bytes of CPU starts reading and writing in 512 units.
; The computer begins to read and write the floppy disk from the original sector, so it is called the boot sector
Dw + ;per sector (sector) size (must be 512 bytes)Db1 ;cluster (cluster) size (must be 1 sectors)Dw1 ;fat start position (typically the first sector)Db2 ;Fat number (must be 2)Dw224 ;root directory size (typically 224 items)Dw2880 ;the disk size (must be 2880 sector 1440*1024/512)DB 0xf0;disk type (must be 0xf0)Dw9 ;the length of fat (must?? 9 sectors)Dw - ;a track has several sectors (must be)Dw2 ;number of heads (required?? 2)Dd0 ;do not use partitions, must be 0Dd2880 ;override disk Size onceDb0,0, 0x29;unclear meaning (fixed)DD 0xFFFFFFFF;(may be) volume label numberDb"Hello-os" ;the name of the disk (must be 11 words?, blank blanks)Db"FAT12" ;disk format name (required?? 8 words, insufficient blanks)Resb - ;empty 18 bytes First;Program Bodydb 0xb8, 0x00, 0x00, 0x8e, 0xd0, 0XBC, 0x00, 0x7c DB 0x8e, 0xd8, 0x8e, 0xc0, 0xBE, 0x74, 0x7c, 0x8a db 0x04, 0x83, 0xc6, 0x01, 0x3c, 0x00, 0x74, 0x09 DB 0xb4, 0x0e, 0xBB, 0x0f, 0x00, 0xCD, 0x10, 0xeb DB 0xEE, 0xf4, 0xeb, 0xfd;Information Display SectionDB 0x0a, 0x0a;two-time line breakDb"Hello, World"DB 0x0a;line BreakDb0Resb 0x1fe-$;complete 0x00 until 0x001feDB 0x55, 0XAA; if there is a start-up procedure, if it is not, return an error that cannot be started. ;partial output outside the boot sectorDB 0xf0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00 resb4600DB 0xf0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00 resb1469432
Write the startup code for the floppy disk-----the first day