Search code examples
assemblyhexemu8086

Why can't we MOV a value of A000H or higher into a 16-bit register?


I have tried most basic instruction "mov ax,B006H" and got the error message

error message


Solution

  • Hexadecimal numbers must start with a decimal digit. That is why so many hex constants start with a leading zero.

    This will work:

    mov ax, 0b006h