On Thu, 20 Dec 2001 14:2:16 +0800 Leslie Jackson <[EMAIL PROTECTED]> wrote:
> Now i think i've got a basic knowledge about the BIOS data area. > But reading the code of boot0.s, i got another question as in the > following code: > > main.5: incw dx # Next item > addb $0x10,bl # Next entry > jnc main.3 # Till done > > The partition table in MBR only has 4 items, why check for 16 times?? it doesn't check for 16. it adds 0x10 to bl and if bl overflows (prolly the end of the partition table. as sizeof(ever entry) == 0x10 and the 4th ends at 0x1fc another (a 5th) increment will overflow bl and result in a set carry flag. hope this helps cheerz corecode -- /"\ http://corecode.ath.cx/ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News
msg30311/pgp00000.pgp
Description: PGP signature