See all articles from T-S Horizons n17
The following “Little Goodies” are a collection of tips, aids, utilities, etc. that should prove helpful in 2068 programming. Special thanks to John Kuhn of the SINC TIMES in Florida and Stuart Ree of the TIMELINEZ N/L in Northern Calif. for their help. If you have a “Little Goodie” to share, please send it along and we will add it to the next edition. THANKS.
TIMELINEZ
P. O. Box 1312
Pacifica, CA 94044
POKE 23609,X
For keyboard click (x = 1 to 255).POKE 23692,2
Use before every print for automatic scrolling. Works like the scroll command on the 1000/1500.POKE 23692,1
Another way to control scroll. Scrolls 22 lines, then a key must be pressed for every line.POKE 23658,8
Put 2068 in caps mode.POKE 23658,0
Take 2068 out of caps mode.PAUSE 0
Pause until any key pressed.POKE 23561,#(# = 1 to 35)
Time that a key must be held down before it repeats. Prefer 10–15 for text.POKE 23562,#(# = 1 to 5)
Delay between successive repeats of a key held down. 3 for text.USR 15002
Try this to get our of an infinite input loop w/o crashing.DIM A$ (704) PRINT AT 0,0; OVER 1; PAPER 1; INK 6; A$
Allows you to change paper and ink color w/o clearing screen.PRINT #1; AT 0,2; "HI" PRINT #1; AT 1,5; "BY" PAUSE 0
Prints on lines 22 and 23.LOAD ""CODE RAND USR 33792
For programs that will not load.LET x=INT(x*10↑y+.5)/10↑y1
Use for rounding. x=NO. to be rounded. y=NO. of dec. places.1 DEF FN r(x,y)=INT (x*10↑y+.5)/10↑y2 INPUT "Enter a number "; a3 INPUT "Round off to ? "; b5 PRINT FN r (a,b)
Sets the defined function to the formula used to round off. a=no. before rounding. b=no. of dec. places desired after rounding.INPUT LINE A$
Prevents computer from placing “” on screen when waiting for input. Note: can’t use stop with this method, but cap shift 6 will stop. Bug in system.PRINT PEEK 23635+256*PEEK 23636
Use to find starting address.PRINT ""
Gives line feed to print statement.RANDOMIZE USR 0
Use to reset computer.INPUT AT 22,0; AT 10,0; "input value"; a$
Input at any position on screen.1 FOR I=0 TO 212 FOR X=0 TO 313 LPRINT SCREEN$ (I,X);4 NEXT X 5NEXT I
Copy screen to printer without using copy command.OPEN #2
Sends all data normally destined for the screen to the printer.CLOSE #2
Cancels above command.1 LET C=22 FOR I=32 TO 2553 PRINT AT 0,0;""4 PRINT AT 0,0; CHR$ I5 IF CODE SCREEN$ (0,0)=0 THEN PRINT AT 4,C; CHR$ I: LET C=C+26 NEXT I
Lists characters not recognized by the SCREEN$ command.CLEAR 63255
Do this first if you plan to use UDG’s in a long basic program that will incorporate a video mode change. A bug in the system will allow a long basic program to overwrite you UDG’s if RAMTOP is not first lowered.POKE 23750,0
If you are using cartridge S/W that can be stopped by the break key, this will allow you to enter your own basic lines into RAM. To return to the cartridge ROMWARE,POKE 23750,128.POKE 23693,56
To give starting paper/ink color.- BASIC starts at 26710.
CAPS SHIFT 3
Scroll two screens when listing.POKE 26711,0
Gives line no. 0.POKE 26711,1to change line 0 to 1.POKE 23659,0
To use all 24 lines (make program unstopable).POKE 23659,2resets. (Use withINKEY$only, INPUT resets.)POKE 26710,255
Use to make lines disappear (makes line NO. over 9999).POKE 26710,0will reset.INKorPAPER 9
Gives contrasting base color.- ‘E’ MODE/CAPS SHIFT and a color 1 – 7
Gives ink color in listing. - ‘E’ MODE/UNSHIFTED and a color 1 – 7
Gives paper color (go back to original color at the end of the line, if not, all the lines will be the same color.) 1 INPUT "COMMENT"; A$; CHR$ 13; "COMMENT"; B$2 PRINT "COMMENT"; A$; CHR$ 13; "COMMENT"; B$
Example of double inputs.9000 FOR I=1 TO 2009010 BORDER 1: BORDER 2: BORDER 3: BORDER 4: BORDER 5: BORDER 6: BORDER 0: PAUSE 19020 NEXT I: RETURN
GOSUB 9000 for a striped border.POKE 23617,236
Use to get a question mark cursor in input statements.PRINT #0; "COMMENT": PAUSE 0
Use to print on line 24.
Notes
- Item 13 as printed reads
LET x=INT(x↑y+.5)/10↑y— the*10is missing, and as printed the formula will not round. Corrected here to match the version given in item 14. ↩
Products
Media
Image Gallery
Source Code
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.