View Single Post
Old May 20th, 2006, 1:11 PM   #35
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,034
Rep Power: 5 lectricpharaoh will become famous soon enough
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
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote