================================================ "BASIC Stuff" - Einar Saukas & Eduardo Issao Ito ================================================ This is an unsorted collection of simple routines, "proof of concept" programs and code pieces we created in BASIC for the ZX-Spectrum, most of them from quite some time ago, that were never used. Perhaps some of them may help people implement new games for the ZX-Spectrum nowadays? We plan to keep adding more routines to this package from our old tapes as we find them... ------ INPUT+ ------ A multi-line INPUT routine we developed in 1990, based on a much simpler INPUT routine we previously implemented in ZX-ALFA. The special controls are: Shift-0 delete previous character Shift-1 clear input area Shift-2 switch CAPS mode Shift-3 move cursor to the beginning Shift-4 move cursor to the end Shift-5 left Shift-6 down Shift-7 up Shift-8 right Shift-9 delete next character -------------- INPUT+ Classic -------------- A recently improved version of the previous routine, adding OVERWRITE mode and support for all ASCII characters. A fully optimized version in Assembly is also available, released as "SUPER INPUT Classic". The special controls are: Shift-0 delete previous character Shift-1 clear input area Shift-2 switch CAPS mode Shift-3 switch INSERT/OVERWRITE mode Shift-4 move cursor to the end Shift-5 left Shift-6 down Shift-7 up Shift-8 right Shift-9 delete next character Symbol-I copyright ------- Counter ------- A simple counter routine with rotating digits, based on the special effect we previously used in the ZX-ALFA intro screen. The relevant lines are: Line 10 - Generates an UDG set copying digits from the ROM. Feel free to replace it with custom graphics (just remember to use the same sequence, with digit 9 appearing twice). Line 20 - Prints initial (zero) value. This loop is not really needed if your program has a fixed number of digits thus it could simply print a fixed string instead. Lines 30,40 - Produces the rotating effect. Notice that the font set address is changed during this process. Line 50 - Restores the standard font set address. --------- Countdown --------- Same as above, but counting backwards. Notice you could easily combine both routines, thus the end a game level could show the remaining time decrementing as it "transfers" its value to an incrementing score. -------- Moldura! -------- A simple routine to generate a frame image with an arbitrary size. ----- Chess ----- A compact routine to draw a chess board. ------- Nave 3D ------- A simple 3D ship animation. The controls are: 6 - LEFT 7 - RIGHT 8 - STOP 9 - MOVE 0 - EXIT ---- Mapa ---- A compact routine to draw a 2D map. It was implemented decades ago so we don't even remember if we designed the map ourselves, or just copied the image from somewhere else and just provided the routine implementation... ======= CREDITS ======= All routines here were programmed by Einar Saukas & Eduardo Ito. "ZX-ALFA" was developed by Einar Saukas & Eduardo Issao Ito http://www.worldofspectrum.org/infoseekid.cgi?id=0025245 "SUPER INPUT Classic" was developed by Einar Saukas http://www.worldofspectrum.org/infoseekid.cgi?id=0027715