By using the systems variables many interesting and useful effects can be created for your programs.
REPDEL 23561 contains 35. Poking in 0 will stop the repeating key function. Poking in 1 makes the machine extremely difficult to handle thus creating an excellent program security device.
BORDER 23624 contains border color times 8. POKEing in an attribute number will change the paper and ink, etc of the lower screen. Border color will change to match thr paper color the next time a key is pressed. POKEing in a flashing attribute just before a SAVE command in a program line gives added emphasis to the SAVE and can be very helpful when multi-SAVEs are used.
PROG 23635 & 23636 contains 86 and 104 respectively. CRASH if POKEd. PEEKing reveals start of program(26710). Peeking the program line numbers and poking the first down to 0 allows you to put an uneditable line in the first line to store data or a copyright. Complete programs can be protected from unauthorized copyright violations once you know where the elements of your program are in memory.
DF SZ 23659 contains 2. POKEing in 0 and PRINTing on Lines 23 and 24 allows you to write on the lower part of the screen. But be aware that if 2 isn’t POKEd back in right after the PRINT AT command-your program will CRASH!
SCR CT 23692 contains 1. POKEing with 24 and following 22 PRINTs in a loop simulates SCROLL in TS 1000 BASIC for motion in arcade type programs.
Some easy to use color control commands are not described on the user manual that makes it easier and more space economical to change INK, PAPER, FLASH, and BRIGHT in PRINT and LET statements as well as in program listings.
INK To change the INK color get the E cursor, then hold down the CAPS SHIFT key. While holding down press the kew of the color you want for INK.
PAPER To change the PAPER color get the E cursor amd press the color key of the paper you want.
FLASH To turn on the FLASH control get the E cursor and press the Caps Shift key and the nine (9) key. To turn the FLASH off get the E cursor, hold down the Caps Shift key and the eight (8) key.
BRIGHT To turn on the BRIGHT control get the E cursor and press the nine (9) key. To turn the BRIGHT off get the E cursor and press the eight (8) key.
If you use TRUE and INVERSE-Be sure that you do not try to edit these lines because the warning buzzer will sound. To prevent this make any program line that uses these controls as short as possible so that it can be rewritten entirely without using the EDIT key.
PRINT and LET Statements
These controls can be used in PRINT and LET statements just as TRUE and INVERSE can be. Remember to stay inside the quotation marks when doing this and be sure to turn FLASH, BRIGHT and INVERSE off before closing the quote or the program listing will change to the characteristics that you have defined within the statement. The same holds true for color commands so you should change the INK and PAPER back to the program listing INK and PAPER before entering the line or you will have to retype the line because of the edit restriction.
When using LET and DIMensioned strings you must allow two character spaces for each color, FLASH, BRIGHT or INVERSE change whether on or off. That’s because the machine uses two bytes to tell itself what control is in use and what the status of that control is.
This utility can also be used to highlight segments of the program listing by changing the characteristics at the end of the program line preceding the line or set of lines to be highlighted. Again remember to turn everything off at the end of the line of the highlighted area in your program.
I always wonder how the flashing entries got into the listings! Thanks for the bits of info, Phil Basford!!