-2

Is mov al,31[di] a valid instruction? If it is, what does it do?

I'm having a debate and I can't access a computer right now (my android phone is not a computer). As you can see I'm pretty new at assembly and on Stack Overflow so sorry for any rule breaking :)

Michael Petch
  • 46,082
  • 8
  • 107
  • 198
Gigel
  • 11
  • 1

1 Answers1

4

Yes, mov al, 31[di] is valid x86 assembly in Intel syntax. It is equivalent to mov al, byte ptr[di + 31].

ElderBug
  • 5,926
  • 16
  • 25