tags:

views:

49

answers:

1

What is the assembly language variable bl? How many bits does it hold? Is it a part of a larger variable like EBX?

+5  A: 

EBX is the 32-bit variant

BX is the 16-bit variant

BH is the high byte of BX

BL is the low byte of BX

deltreme
So if EBX=0000001B, then what is bl?
Phenom
BL is 1B in that case
deltreme
1B is 32 bits, correct? Since each digit can go from 0 to F, which is 16 numbers. Does that mean that bl is a 32-bit variable?
Phenom
@Phenom:No. Each hex digit can go from 0 to F. 16 numbers fit into 4 bits (2**4 = 16), so two hex digits correspond to 8 bits.
Jerry Coffin