1. Herbert W. typed in the “piano” program from last month, but wanted to get up and running faster. He revised piano to use SCREEN $ to LOAD the keyboard and cut LOAD time in half. Try it.
2. Marty J., has been entering some Microsoft BASIC programs into his 2068. He offers the following sample correlation for STRING handling.
MISCROSOFT RESULTS SINCLAIR BASIC MID$(A$,3,2,) LL A$(3 to 4) LEFT$(A$,2) HE A$(to 2) RIGHT$(A$,2) LO A$(LEN(A$)-1 To)
MICROSOFT BASIC
10 A$="HELLO"
20 LPRINT MID$ (A$,3,2)
30 LPRINT LEFT$(A$,2)
40 LPRINT RIGHT$(A$,2)
LL
HE
LO
SINCLAIR BASIC
10 LET a$="hello"
20 PRINT a$( TO 2)
30 PRINT a$(3 TO 4)
40 PRINT a$(LEN a$-1 TO )
NOTE: Lives 20 & 30 are reversed.
3. FROM TRIANGLE NEWSLETTER:
More on Darkening the Printer – Dick Scoville
My original plan was to make the following program an example in this month’s machine code tutorial and explain it line by line, but it requires some familiarity with so many things that it’s best just to give it as is. The idea is very simple: write a new character set. Don’t panic, the program itself will do all the work for you in the twinkling of an eye. Here is the program, in Z80 mnemonics and in decimal and in hex–all 29 bytes of it:
57786 LD DE,00DD 56576
57789 PUSH DE
57790 LD BC,0003 768
57793 LD HL,(365C) CHARS
57796 INC H
57797 LD A,(HL)
57798 AND A
57799 RRA
57800 OR (HL)
57801 LD (DE),A
57802 INC HL
57803 INC DE
57804 DEC C
57805 JR NZ,F6 57797
57807 DJNZ F4 57797
57809 POP HL
57810 DEC H
57811 LD (365C),HL CHARS
57814 RET
57815 NOP
57816 NOP
57817 NOP
17 0 221 213 1 0 3 42 54 92 36 126 167 31 182 18 35 19 13 32 246 16 244 225 37 34 54 92 201 11 00 DD D5 01 00 03 2A 36 5C 24 7E A7 1F B6 12 23 13 0D 20 F6 10 F4 E1 25 22 36 5C C9
Do the following:
1) CLEAR 56575
2) LET sdk=57786
3) Enter the 29 bytes of code starting at address 57786
4) Peek them to be sure they are OK.
Now RANDOMIZE USR sdk will give you a new alphabet, which will be used by LPRINT, LLIST and COPY from now on. If you want to recover the old original alphabet, simply POKE 23607,60.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.