int 0x13 ah = 0x08

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
bloodhound23
Member
Member
Posts: 115
Joined: Wed Jan 23, 2008 7:13 pm
Contact:

int 0x13 ah = 0x08

Post by bloodhound23 »

int the interrupt list, what does it mean when it says "CL = maximum sector number(5-0)" specifically the 5-0 part.
I thought I wasn't thinking, I thought wrong.
Cemre
Member
Member
Posts: 31
Joined: Fri Nov 09, 2007 5:25 am

Post by Cemre »

CL = maximum sector number (bits 5-0)
high two bits of maximum cylinder number (bits 7-6)

CH = low eight bits of maximum cylinder number

low 6 bits of CL contain maximum sector number
high 2 bits of CL contain higher 2 bits of maximum cylinder number

that is; max cylinder number is actually 10 bit..
8 bits in CH, 2 bits in CL

max sector number is only a 6bit field.

let's say CHS = 257:2:63

CL[0..5] = 63

CL[6,7] = 01b
CH[0..7] = 00000001b

Cylinder is 01 combined with 00000001b -> 0100000001b = 257
User avatar
bloodhound23
Member
Member
Posts: 115
Joined: Wed Jan 23, 2008 7:13 pm
Contact:

Post by bloodhound23 »

thanks
I thought I wasn't thinking, I thought wrong.
User avatar
bloodhound23
Member
Member
Posts: 115
Joined: Wed Jan 23, 2008 7:13 pm
Contact:

Post by bloodhound23 »

I'm confused on how I might extract these values to use in LBACHS.
I thought I wasn't thinking, I thought wrong.
Post Reply