How can I move an 8-bit address into a 16-bit register in x86 assembly?

后端 未结 2 900
悲哀的现实
悲哀的现实 2020-12-21 23:38

Here, I\'m trying to move the variable X (which is an 8-bit variable) into the register bx (which is a 16-bit register). How can I move the value of X into the register bx i

2条回答
  •  感情败类
    2020-12-22 00:13

    The low 8-bits of BX are addressable as BL.

    So, all you need to do is: mov bl, X

提交回复
热议问题