Posted on 2004-11-16
I need an explination of the difference between store word and store byte in assembly language. I know that with normal variables i can use the store word command to store a register value to a physical address. i.e.
LDI R7, 3 // Load imediately the value 3 to register 7
STW R7, MINS // Store word the value of R7 to addressrepresented
// by MINS
But what about indexed addressing;
LDI R7, 3 // get subscript
LDB R5, ARRAY, R7 // = ARRAY
So here the indexed value of ARRAY is stored in R5. But how do i store the value of 5 to that indexed memory location? Is it;
LDI R2, 5
If anyone knows what im talking about here please help me. P.S. i know the syntax may not be typical as it is for a teaching assembly language ERICA which isnt widely known but i guess if your familiar with traditional assembly languages you'll know what im talking about.