Page 1 of 1
Confirmation on register bits
Posted: Mon Mar 02, 2009 6:27 pm
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.
Re: Confirmation on register bits
Posted: Mon Mar 02, 2009 8:37 pm
by nekros
Never mind, I got it all working. (Bootloader Is Nearing Completion!)
Re: Confirmation on register bits
Posted: Tue Mar 03, 2009 4:49 am
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