0

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

4
  • You need to specify architecture. Commented May 19, 2010 at 12:10
  • EBX is not a variable but a register. Commented 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? Commented 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'. Commented May 19, 2010 at 20:25

1 Answer 1

7

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

Sign up to request clarification or add additional context in comments.

4 Comments

So if EBX=0000001B, then what is bl?
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: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.
EBX = 00000000 00000000 00000000 00000000

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.