I am trying to raise my legs in MIPS assembly language using the MARS simulator .
My main problem now is how to initialize a set of memory cells so that I can access them later through assembly language instructions?
For example, I want to initialize addresses 0x1001000 - 0x10001003 with values ββ0x99, 0x87, 0x23, 0x45. I think this can be done in the data declaration (.data) section of my build program, but I'm not sure about the syntax. Is it possible?
Alternatively, in the .data section, how do I specify the storage of integer values ββin some memory location (I donβt care where, but I just want to reference them somewhere). So I'm looking for the C-equivalent of "int x = 20, y = 30, z = 90;" I know how to do this with MIPS instructions, but is it possible to declare something like this in the .data section of the MIPS build program?
source share