9 bpbBytesPerSector: DW 512
10 bpbSectorsPerCluster: DB 1
11 bpbReservedSectors: DW 1
13 bpbRootEntries: DW 224
14 bpbTotalSectors: DW 2880
16 bpbSectorsPerFAT: DW 9
17 bpbSectorsPerTrack: DW 18
18 bpbHeadsPerCylinder: DW 2
19 bpbHiddenSectors: DD 0
20 bpbTotalSectorsBig: DD 0
23 bsExtBootSignature: DB 0x29
24 bsSerialNumber: DD 0xa0a1a2a3
25 bsVolumeLabel: DB "MOS FLOPPY "
26 bsFileSystem: DB "FAT12 "
48 div word [bpbSectorsPerTrack
]
50 mov byte [absSector
],dl
53 div word [bpbHeadsPerCylinder
]
56 mov byte [absTrack
],al
85 add bx,word [bpbBytesPerSector
]
106 mov cl,byte [bpbSectorsPerCluster
]
127 mul word [bpbRootEntries
]
128 div word [bpbBytesPerSector
]
131 mov al,[bpbNumberOfFATs
]
132 mul word [bpbSectorsPerFAT
]
133 add ax,[bpbReservedSectors
]
144 mov cx,[bpbRootEntries
]
162 mov dx,word [di+0x1A]
163 mov word [Cluster
],dx
166 mov al,[bpbNumberOfFATs
]
167 mul word [bpbSectorsPerFAT
]
170 mov ax,[bpbReservedSectors
]
189 mov ax,word [Cluster
]
196 mov ax,word [Cluster
]
209 and dx,0000111111111111b
214 mov word [Cluster
],dx
234 imageName
db "STAGE2 SYS"
235 ok
db "Stage2 was find...",13,10,0
236 bad
db "Stage2 dont find...",13,10,0
237 banner
db "Boot start...",13,10,0
238 times
510 - ($
-$$
) db 0