Quote:
|
Originally Posted by kruptof
when i try to run this code below i keep getting an error saying a "byte or a word". why is this, didn't i already say that these two variables are both bytes by saying define bite (db), or is this error sayingg what do you want to move a byte or a word.if so how can i move a word if both of the variabes are a byte long.
Here is the code:
|
You can't do memory-to-memory operations on Intel CPUs, except for a few cases, such as movs (
move
string, not the plural of MOV). You need to move it into a register from the source memory location, then from that register to the destination memory location:
mov ah, num1
mov dummy, ah