When I write this:
mov cx,dh
mov dx,dl
It makes an error:
invalid combination of opcode and operands
I'm a beginner at assembly language so I need help!
When I write this:
mov cx,dh
mov dx,dl
It makes an error:
invalid combination of opcode and operands
I'm a beginner at assembly language so I need help!
Copyright © 2021 Jogjafile Inc.
The error message you get for
mov cx, dhmeans that the size of the CX destination register (16 bits) is different from the size of the DH source register (8 bits). For most instructions, operands must be the same size.There are several ways to do
mov cx, dh.There are several ways to do
mov dx, dl.There are several ways to do
mov cx, dhmov dx, dl.Choose wise and stick with the simple ones!