I worked a little on reverse engineering these a couple of days ago. Each character in the print statement is a number from 0 to 255, and is equivalent to a long VDU statement with those numbers. The resulting print statement is smaller and slightly faster for plotting fixed graphics (for instance)There are even more of the "magic PRINT statements" this time. What actually do they do? On BBC Basic for Windows they print the actual characters shown in the PRINT statements on the Owlet editor.
To translate them back into readable numbers, I used: https://www.branah.com/unicode-converter.
Paste the magic into the unicode box and then grab the decimal box readout and mod by 256.
The reverse is one step extra. Take all your VDU commands, add 256 to any number under 32, and leave the rest as they are. Paste them into the decimal box, and grab the resulting magic unicode for your print statement.
Statistics: Posted by shadow — Tue Feb 13, 2024 6:08 am