Writing a Gecko Register to an Address

Started by Almas, January 03, 2009, 02:27:59 AM

Previous topic - Next topic

Link

Quote from: Almas on January 04, 2009, 08:36:24 PM
QuoteSo [XXXXXXXX] means "the data stored at XXXXXXXX".

Does this not imply that:
Quote8420 : writes the 32bits in grN ZZZ times+1 at [XXXXXXXX]
means:

Write grN ZZZ times+1 at the address stored at XXXXXXXX

?

8420ZZZN XXXXXXXX : writes the 32bits in grN ZZZ times+1 at [XXXXXXXX]

--> so if you want to write the value of gr0 to 80102030
--> 84200000 80102030

the ZZZ would write it multiple times:
84200020 80102030 --> writes 80102030, 80102034, 80102038 - ZZZ+1 = 002+1 = 3 times!

Almas

I know what this code does, however, I am arguing that in the codetypes document it should be described as:

Quote8420 : writes the 32bits in grN ZZZ times+1 at XXXXXXXX

Because we are talking about storing it at the location XXXXXXX, not storing it at the address specified by the location XXXXXXXX.

Romaap


Almas

Eh, I guess I just interpret it in a different way to you, I can kinda understand where you're coming from. Either way my problem has been resolved. Thanks for the help.

That said I've started working on a couple of codes which require ASM, which I see giving me even more grief. Twice the freeze glitches, half the comprehension =).