Post Reply 
newRPL - Wiki examples for PEEK, POKE and NEWOB commands
09-24-2021, 01:56 PM
Post: #9
RE: newRPL - Wiki examples for PEEK, POKE and NEWOB commands
(09-22-2021 11:12 PM)JoJo1973 Wrote:  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.

You are right, it should've been ANDed with 0xfffffffc to protect from user error, but there's no need for safety guards because it's low level, reading from misaligned addresses will throw an exception, no big deal.
I may even remove those 2 commands once development is complete (which is a utopia, of course!!)
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 - Claudio L. - 09-24-2021 01:56 PM



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