Post Reply 
newRPL - Wiki examples for PEEK, POKE and NEWOB commands
09-23-2021, 03:20 PM
Post: #7
RE: newRPL - Wiki examples for PEEK, POKE and NEWOB commands
(09-22-2021 11:17 PM)JoJo1973 Wrote:  
(09-22-2021 09:01 AM)gianluca Wrote:  I don't know if this is even possible, but: can be poke used to toggle a pixel on the screen?
A satisfying example could be a small program that uses peek and poke to simulate the pixon/pixoff instructions.

I don't think so, because I suppose the screen is not mapped to a fixed range of memory.

What I had in mind was something such as turning on/off an annunciator or checking its state, but I don't know if this information is stored in a fixed place and/or this place (provided it exists) changes when a new version is built.

All is possible: you can turn pixels on and off, turn LEDs on and off, etc. but... it's hardware dependent, so an example that works on the 50g will crash on the Prime, Android or PC.
I'd rather not have examples that are machine-dependent.
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-23-2021 03:20 PM



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