I've hinted that I use basic as an easy way to test the system functions as I code them. Here is an example:
10 PRINT DEEK($FE42), DEEK($FE44) : GOTO 10
DEEK is the equivalent of PEEK, but on a 16-bit word. So the line of code prints two 16-bit values, from I/O-ports $FE42 and $FE44, which are the touch-screen X- and Y-coordinate. It also loops forever. A very simple and informative way to test the implementation.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
32-bit access is not planned, but very possible to add. Though I'd probably rename it to PEEK16/POKE16 & PEEK32/POKE32 in that case, a bit easier to understand.
Are you sure? yes | no
DEEK, hmm. Is there a DOKE too?
Are you sure? yes | no
Yes indeed there is. ehBasic is a very nice piece of code to use, even if the source is a bit messy.
Are you sure? yes | no
Will there later be QEEK and QOKE for 32b?
Are you sure? yes | no