feldmani
asked on
printing an array of Double Word integers in x86 assembly
I set up an array of double words in memory but I do not know how to get them out of memory and print them. Can any one give me an idea of how to do this or direct me to some good sites to explain working with bigger variables than the register itself. I know I could probalby use extended registers, but am not very familiar with them.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you want to work with standard registers then you can handle a double word in two parts. You have to know that the four bytes of a double word a ordered in the memory from less meaningfull to the most meaningful byte. Or speaking in words - the first word in the memory of a double word is the less meaningful word of both.
So if you have a double word at address A in the memory then you have the less meaningful word at address A and the most meaningful word at address A+2. Knowing that and knowing how to work with standard registers you're supposed to do the trick.
btw The extended registers (at least general purpose ones) work like the standard ones. The only difference is that they are bigger.
Hope that helps!