Our 2068 program comes again from Roger Valentine‘s book, The Timex Sinclair 2068. It is quite short, but it shows how to use the OVER command.
If you want to create an odd shaped character for some reason there is a very easy way to do so without all that USR CHR$ 144 business. Just use the EXCLUSIVE OR aspect of the expression OVER 1 to print one character on top another, obliterating all points where the two characters meet.
This program allows you to enter any two character. Line 50 will show you the two characters plus the strange EXCLUSIVE OR character created by the OVEP 1. Useful, eh? In fact, you will be suprised how easy it is to create some interesting “invader” type characters by using this method.
10 PRINT "EXPERIMENTS WITH OVER"
20 INPUT "Enter any 2 charact-ers (space to STOP)";&$
30 IF &$=CHR$ 32 THEN STOP
40 IF LEN &$<> 2 THEN GO TO 20
50 PRINT &$(1);CHR$ 8; OVER 1;;&$();" = ";&$(1);" OVER ";&$(2)
60 GO TO 20
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.