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
2010-05-19 12:12:32
So if EBX=0000001B, then what is bl?
Phenom
2010-05-19 12:13:21
BL is 1B in that case
deltreme
2010-05-19 12:14:45
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
2010-05-19 12:24:25
@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
2010-05-19 12:30:01