Confirmation on register bits

Programming, for all ages and all languages.
Post Reply
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Confirmation on register bits

Post by nekros »

I'm just looking for confirmation on what the order of the bits are in two byte registers such as ch and cl compare to the word register (in this case cx) they are contained in. To be more exact is bit 0 of cx the same as bit 0 of cl? I'm asking because bts doesn't work on 8 bit registers.
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Re: Confirmation on register bits

Post by nekros »

Never mind, I got it all working. (Bootloader Is Nearing Completion!)
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: Confirmation on register bits

Post by jal »

nekros wrote:I'm just looking for confirmation on what the order of the bits are in two byte registers such as ch and cl compare to the word register (in this case cx) they are contained in. To be more exact is bit 0 of cx the same as bit 0 of cl? I'm asking because bts doesn't work on 8 bit registers.
Just for the record (in case anyone ever needs an answer): the LSB of CX is CL. (L: low, get it?).


JAL
Post Reply