Post Reply 
newRPL - Wiki examples for PEEK, POKE and NEWOB commands
09-22-2021, 11:12 PM
Post: #5
RE: newRPL - Wiki examples for PEEK, POKE and NEWOB commands
(09-22-2021 12:31 AM)Claudio L. Wrote:  PEEK and POKE are low-level commands, can only be used by "certain people" with "certain knowledge". It's OK if there's no examples, they simply read or write a 32-bit word at a word-aligned ARM address. They aren't meant for the general public, but mainly to aid the developers on hardware debugging. Using "some random address" you will either cause a crash (data abort exception), or corrupt your precious data.

There's something I don't understand. When you say 32-bit words at word-aligned ARM addresses you mean that e.g. 0 PEEK should read 4 bytes starting at address 0 and 1 PEEK should read 4 bytes starting at address 4 and so on, right?

Because if I've understood the code (big if Wink ), the address should be ANDed with 0xfffffffc, not 0xffffffff, and the same applies for POKE.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL - Wiki examples for PEEK, POKE and NEWOB commands - JoJo1973 - 09-22-2021 11:12 PM



User(s) browsing this thread: 2 Guest(s)