0

In my .asm code, i take keyboard input from the user which is stored in al register, So how to move value from al to si. When i directly try

mov si, al

then this error shows up - invalid combination of upcode and operands.

Raymond Chen
  • 44,448
  • 11
  • 96
  • 135
dent
  • 1
  • 1
  • 1
    Which processor do you intend to run on. 386+ or a something earlier than that like 8086/80286 – Michael Petch May 01 '22 at 13:24
  • ```si``` is a 16 bit register, ```al``` is an 8 bit register. You want ```movzx si, al```, ```movsx```, or otherwise deal with the difference, e.g. use the whole ```ax``` for input. – Homer512 May 01 '22 at 13:19

0 Answers0