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.