
Dear Ed,
First, let me express my appreciation for SYNCHRO-SETTE. The more I re-read them and experiment with the programs that you have prepared, the more I learn about my ZX-81.
In the November, 1982 issue (Vol.1, No. 8) on the back page, you included the program “DATES, PAST, PRESENT & FUTURE”. Then the very last comment was: “It is not that hard to use this routine to put a calendar on the screen for any month.” So I thought that I would give a try to turning it into an appointments calendar … With the addition of several program lines, I was able to make an adjustment for varying the lengths of the months:
Lines 10-140 the same as printed
150 PRINT "ENTER THE DATE"
160 INPUT D
170 IF D=0 OR D=32 THEN
GOTO 600
171 IF D=30 AND (M=4 OR M
=6 OR M=9 OR M=11)
THEN GOTO 600
172 IF D=29 AND M=2 THEN
GOTO 500
173 IF D=30 AND M=2 THEN
GOTO 600
Lines 180 to 320 same as printed
500 IF INT (Y/4)=(Y/4)
GOTO 173
600 PRINT "INVALID DATE"
605 PAUSE 200
610 CLS
620 GOTO 90
Now perhaps you will help with a tutorial that will show us how to develop an appointment book.
Another area that would interest me comes from a Beginners’ Course in programming that I had in San Salvador on an Ohio Scientific. They had a cassette program that poked the screen display from 24 characters to the line to 48. Would it be possible to develop a program for the ZX-81 that would increase the screen display from 32 to 64 characters per line?
When I first returned to the U.S. and found my ZX-81 waiting for me, I was a little bit disappointed. It seemed little more than a toy. But the most valuable peripheral that I have for my ZX is SYNCHRO-SETTE, THANKS!!!
Just as I was about to put the letter into the envelope, I thought of one more area where I could use a little help.
The Gladstone keyboard has six extra “user definable keys”. How can they be designated? Do they have to be hard-wired for a task or can they be programmed from the keyboard? It would be helpful if there was someway to put a shift key on the right side of the board to get to those upper case left hand keys.
Sincerely,
Jack H. Lottey
Director of Resources Development
Upstate Home For Children, Inc.
Oneonta, NY
Dear Jack,
I’m sure many of the users will find your program change helpful. I got this routine from a much more elaborate program I wrote on another computer for sales analysis. Here’s how it works: It looks at a file of customer receipts for only two items, the date and the sales amount. It then draws a calendar month, knowing exactly when the first day of the month occurs and how many days there are in the month. It then puts into each day’s box the total number of sales and the total dollar amount. Therefore, 12 sales for $475 would be represented as 12/475. It shows at the end of the week the total sales/total dollar amount at the right of each row and does the same for the the columns of days at the bottom of each column. It then shows the total sales amounts and the average sale.
This is just one of the ways this routine can be used. You can expect to see a version on one of the future cassettes (mabe even June/83).
Appointment book calendars are much simpler and I may have one of those, too.
To generate more and smaller characters would require a ROM change or enhancement. The character generator in the ZX/TS computers only allows the ones you see from the keys. The reverse is possible where larger characters are generated, like in our SUPERSCROLL and INVERSCROLL programs. If one of the high resolution modules such as the HGR EPROM (99.95 from Memotech 800/662-0949) is added, it might be possible to write a program that generates smaller characters, because instead of having screen resolution of 64 by 44 pixels, you would then have 192 by 248 pixel resolution.
The “user definable keys” on the Gladstone keyboard, to the best of my knowledge, are defined by soldering their leads into the computer circuitry to accomplish what you define. I’m, of course, being facetious. There are many hackers out there who find this child’s play. I’ll stick to programming.
Some suggestions for the keys, besides what you suggested, might be – shift lock, power on/off (like the 2040 printer), instant USR calls such as sort routines or memory size check (ROM module interface needed), LIST, LIST scroll up, LIST scroll down, CONT of program with restoration of screen graphics and character that at present, are lost forever, etc.
I’m sure most of these features would need ROM modification or addition of some ROM module – Ed.
Dear Ed,
I have received two issues of SYNCHRO-SETTE so far and I want to congratulate you all on a powerful little magazine.
You have probably had an article on this application, but I’ll ask anyway – I would like to see how to write a program to add undetermined columns of figures from INPUTS and display (with totals and averages) on the monitor.
I would also like to see more descriptions on the BOSS program packages to determine if they would fit my applications. (Don’t buy a pig in a POKE – would like more of a PEEK at the pig first).
Keep up the good work.
Respectfully,
John P. Baney, Perrysville, OH
Dear John,
VAL told me she wanted a TAB COS she was ON a diet AND wanted TO slim down AND get a TAN NEXT summer AND GOTO her CONTry estate. (See, two can play that game and I think it’s a SIN.)
Ask and ye shall receive!
10 DIM A(100)
20 LET B=0
30 LET C=0
40 LET B=B+1
50 INPUT A(B)
60 SCROLL
70 LET C=C+A(B)
80 PRINT B;TAB 10;A(B); TAB 20;
C/B
90 GOTO 40
RUN this program and enter your numbers. The increment will be the number in the first column, the entered number will be in the second column and the running average will be in the third coulumn.
We intend to do reviews in future issues of other BOSS software packages like the SYNTEXT review in this month’s issue – Ed.
One of our subscribers wrote in asking how to find roots of any value for any number. I can’t seem to find the letter but the reference was on how to find roots of a number. The following format program was similar to the method described in the letter to find powers of a number:
10 PRINT "WHAT IS THE NUMBER?"
20 INPUT A
30 PRINT "WHAT IS THE POWER?"
40 INPUT B
50 PRINT A; " TO THE ";B;
" POWER IS ";A**B
To find roots of a number, the following program will accomplish this task:
10 PRINT "WHAT IS THE NUMBER?"
20 INPUT A
30 PRINT "WHAT IS THE ROOT?"
40 INPUT B
50 PRINT A; " TO THE ROOT OF ":B:
" IS ";A**(1/B)
Ed.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.