Hi all,
I'm having fun playing around in BASIC again after a 20+ years break...
So, to get going again on my recently acquired MSX2 I'm currently making a little program to entertain my two sons, one who I have pushing random buttons to produce colours and sounds and one of which is old enough to just start learning how to read...
I was thinking to do text that scrolls onto the screen, which I know how to do in assembly but I'm kinda stumped how to do this in MSX BASIC. In pseudo code it would look something like
- read character on position X on screen - write found character at position X-1 - do this from column 1 to 40 so every character is copied over to the previous position so we get a coarse scroll (no soft scroll on MSX2 unfortunately)
- read data table (or string would work too I guess) with offset - write new character at location on column 40
- start from the top for looping scroller.
(Someone will probably reply 'YOUR DOIN IT WRONG' please do! )
All of this translates rather well to MSX's powerful BASIC, EXCEPT I can't for the life of me figure out how to READ a character on screen. It's probably possible using VPEEK(), but I couldn't figure out WHERE to peek using the BASIC reference manual that I had. It's probably very simple but I can't find it.
Thanks!