View Single Post
Old May 21st, 2006, 7:32 AM   #37
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,029
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by kruptof
oh...............thanks i understand now..............another question...........how do i move whats inside my save variable into a register such as ax register because when i do
i keep getting an error
Assuming save is a memory word to which you have read access, this should not be a problem. Double-check your code and make sure it is declared as such (you may need to use an override, like word ptr save). You may be referencing the address rather than the value at the address, depending on your assembler (for example, in NASM, memory references are enclosed in brackets; without the brackets, it would be semantically the same as mov ax, offset save is in TASM/MASM, which is almost certainly not what you want). Lastly, be sure you're not clobbering a register you shouldn't be. This is a concern when using certain APIs, or interfacing with higher-level languages, though it's almost universally safe to clobber EAX and its smaller components.
__________________
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