What is the assembly language variable bl? How many bits does it hold? Is it a part of a larger variable like EBX?
-
You need to specify architecture.aioobe– aioobe2010-05-19 12:10:41 +00:00Commented May 19, 2010 at 12:10
-
EBX is not a variable but a register.ThiefMaster– ThiefMaster2010-05-19 12:10:54 +00:00Commented May 19, 2010 at 12:10
-
I'm running on a PC, not sure what architecture that's called. So does bl show a part of a register?neuromancer– neuromancer2010-05-19 12:12:22 +00:00Commented May 19, 2010 at 12:12
-
@ThiefMaster: registers are a type of variable, or most accurately, 'EBX' in assembly language is a variable that's implemented by the register called 'EBX'.Joren– Joren2010-05-19 20:25:19 +00:00Commented May 19, 2010 at 20:25
Add a comment
|
1 Answer
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
4 Comments
neuromancer
So if EBX=0000001B, then what is bl?
neuromancer
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?
Jerry Coffin
@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.