post

Tiny Basic

Tiny Basic for the KIM-1 and the TIM in the Superjolt

Tiny Basic interpreter Copyright 1976 Itty Bitty Computers, used by permission

Tiny Basic on the Superjolt

On this page information how to run Tiny Basic, by Tom Pittman, for the KIM-1 or a TIM (RRIOT 6530-004) based machine, like Jolt and Superjolt, with 4K RAM at least extra.
Any 6502 machine with character I/O can run Tiny Basic, source is available with just a few changes to be made to I/O, memory layout and breaktest. Note that most of the zeropage is used by Tiny Basic!

All tests and binary file manipulation with Tiny Basic have been done with my KIM-1 and TIM Superjolt simulators.
File conversion between binary and papertape and such is done with the Convert Hex 8 bit formats utility.

On this page you find:

A TIM (6530-004) Superjolt simulator update, also KIM-1 Simulator

A TIM (6530-004) Superjolt Demon simulator.

Version 0.4. TIM Superjolt Simulator V0.4, Tiny Basic working!

Since the TIM Simulator and the KIM-1 Simulator share a lot of code, also the KIM-1 Simulator got an update, to let Tiny Basic work better: V1.3.8 is available.

The bundled Conversion 8 bit hex formats is now at version 2.6.

I have since yesterday a Raspberry Pi 5. Great little machine. Very grown up installation. Lazarus works fine with the usual trick of first the apt install version and then fpcupdeluxe for a newer version.

The TIM and KIM-1 Simulator work fine on the Pi 5, so a Raspberry Pi 5 is now included in the distributions.

post

The KIM-1 family

The KIM-1 is one of the first computer systems build around the 6502 microprocessor, somewhere in 1975.
The hardware and software concepts in the KIM-1 were reused in a number of systems created later.

  • Application and expansion connector
  • KIM-1 monitor software in ROMs 6430-002 and 6430-003
  • RRIOTs in 6530 (equivalent to 6532)
  • Bitbanged serial interface
  • 6 multiplexed seven segment LEDs and hex keyboard
  • MOS Technology papertape format load and save
  • KIM-1 audiotape format

Over the years I have collected a ‘family’ of small computers with one or more concepts of the KIM-1, as shown in the figure above.

System          Connectors KIM-1 monitor Serial  LEDS + keypad Papertape KIM-1 audio RIOT
-----------------------------------------------------------------------------------------
KIM-1                X           X         X           X          X           X        X
SYM-1                X           X         X           X                      X        X
AIM 65               X                                                        X        X
MCS Alpha 1                                X           X                      X        X
Elektor Junior                             X           X                      X        X
KIM UNO                          X                     X          X                    X 
Micro-KIM                        X         X           X          X                    X
KIM Clone                        X         X           X          X                    X
PAL-1                            X         X           X          X           X        X
MOS Reproduction     X           X         X           X          X           X        X
KIM-1 Simulator                  X         X           X          X                    X
-----------------------------------------------------------------------------------------
post

Cubit KIM Bus for AIM 65

New scans of KIM-1 manuals

I found new high quality scans of KIM-1 manuals on the Retro Commodore website.
That website is filled with high quality scans of Commodore publications.

High quality scans of the User, Programming, Hardware manuals. Also scans of KIM-5 related manuals like Assembler and Editor (a new one for me!).

The originals are from a German distributor, there is a sticker on the frontpage.

I thank Carsten Jensen for his invaluable work!

Manuals are added also to the KIM-1 manuals page, which did get a cleanup too.

Superjolt and TIM 6530

I have acquired 3! Superjolts. With a Synertek Superjolt CP110 manual and Tiny Basic + RAP (assembler) in ROM.

A good opportunity to update the 6530 and the Jolt SuperJolt pages. Better quality and more documents, more photos, ROMs dumped.

THE-RC 41523 CPU-4

CPU-4 is a 6502 SBC based upon the TIM 6530-004. Developed for teaching on the Technical University Eindhoven.
The only surviving part of the system is a 40 page Dutch manual.
Described are the function of TIM, Tiny Basic and Resident Assembler Program, same as the Jolt and Superjolt.

Dutch manual of RC41523 CPU-4

Some excerpts from the manual:







Known 6530 variants

6530-002 $1C00-$1FFF KIM-1 listing in KIM-1 Users manual
6530-003 $1800-$1BFF KIM-1 listing in KIM-1 Users manual
6530-004 $7000-$73FF TIM Terminal Monitor, see the TIM page
6530-005 According to this OSI appnote this is an unprogrammed version of the 6530 TIM
I have only seen ads for this part without further description of what this is.
It has the 16 I/O lines, 64 word RAM and the timer, which can generate an IRQ. One can assume the ROM is empty.

6530-006 Allied Leisure pinball version 1 (IC6)
6530-007 Allied Leisure pinball version 1 (IC3)
6530-008 Allied Leisure pinball version 1 (IC5)
6530-009 Allied Leisure pinball (IC5)
6530-010 Allied Leisure pinball (IC6)
6530-011 Allied Leisure / Fascination pinball (IC3)

6530-012 Gottlieb System 1 sound board (R3014-12)
6530-013 Gottlieb System 1 sound board (R3014-13)
6530-014 Gottlieb System 80 series sound board (R3016-11)
6530-016 Used in Gottlieb system 80/80A/80B sound boards

6530-024 Commodore Chessmate (based upon Peter Jenning’s MicroChess)

6530-241 MIOT in pinball machines
6530-243 MIOT in pinball machines

Commodore diskdrives ROM at $FC00-$FFFF

901466-01 6530-??? 2040 DOS 1.0 Shugart SA390 2040, 3040 and 4040
901466-02 6530-028 4040 DOS 1.2 Shugart SA390 2040, 3040 and 4040
901466-04 6530-034 8050 DOS 2.0 DOS 2.1 Shugart SA390
901483-02 6530-036 8050 DOS 2.5
901483-03 6530-038 8050 DOS 2.5 Micropolis 1006-II (8050)
901483-04 6530-039 8050 DOS 2.5 Tandon TM100-3M (8050)
901884-01 6530-040 8X50 DOS 2.7 Tandon TM100-3M (8050) Tandon TM100-4M (8250)
901885-01 6530-044 8X50 DOS 2.7 Micropolis ???
901885-04 6530-047 8X50 DOS 2.7 Micropolis 1006-II (8050) Micropolis 1006-IV (8250) Micropolis 1106-II (Safari, mit Garagentor, 8050) Micropolis 1106-IV (Safari, mit Garagentor, 8250)
901869-01 6530-048 DOS 2.7 M.P.I. 101SM (8050)M.P.I. 102?? (8250)
251256-02 6530-050 8250 DOS 2.7 Matsushita JU-570-2 (8250LP)
251257-02A 2716 DOS 2.7 Matsushita JU-570 (SFD-1001) Matsushita JU-570-2 (SFD-1001)
251474-01B 2716 DOS 2.7 Matsushita JU-570-2 (8250LP)

Replacing the 6530-002 and -003 in a KIM-1 has become quite easy. See this page on replacements with a 6532, some glue logic and a (E)EPROM.

The RRIOT in CBM disk drives are only different in the ROM contents The rest is as follows:

– Pin 18 is PB6 (no CS1).
– Pin 19 is CS2 (noPB5) .
– Pin 17 (PB7/IRQ) has no Pullup.
– ROM is in $FC00 bis $FFFF (RS0=0, CS1=X, CS2=1).
– RAM is in $0000 bis $003F (RS0=1, CS1=X, CS2=0, A9=,0 A8=0, A7=0, A6=0).
– I/O is on $0080 bis $00BF (RS0=1, CS1=X, CS2=0, A9=,0 A8=0, A7=1, A6=0).

Logic of addressing:

 	RS0	CS1	CS2	A9	A8	A7	A6
ROM	0	X	1	-	-	-	-
RAM	1	X	0	0	0	0	0
IO	1	X	0	0	0	1	0

Via an adapter board Commodore reused older 6530’s with new firmware by disabling the built in ROM and adding a 2716.
See Zimmers Commodore archive. Note that not just any 6530 can be used in this way, only the 6530’s from the Commodore diskdrives. A more general approach with a 6532 is described here.

Most if the information on this pages is also found on the pages of Martin Hoffman Vetter

RIOT 653X datasheets

Datasheets 6530

The 6530 was produced by most 6502 manufactures, from MOS Technology/Commodore SG to Rockwell and Synertek. All production datasheets that I have seen are identical, The oldest one is a preliminary MOS datasheet for the MCS6530, missing the ordering pages of the production version.

MOS Technology MCS6530 Memory IO Timer Array
Preliminary Data Sheet 1975
MOS Technology MCS6530 Memory IO Timer Array
Preliminary Data Sheet 1975-08
MOS Technology MCS6530 Memory IO Timer Array
Preliminary Data Sheet 1975
Commodore 6530 6520 datasheet
Commodore 6530 datasheet
MOS 6530 datasheet
> Commodore MOS 6530 datasheet
MOS6530
Rockwell r6530 RRIOT
Synertek sy6530

6532

MOS 6532 RIOT Preliminary feb 1977
Commodore MOS 6532 RIOT
Commodore MOS 6532 RIOT
Rockwell R6532
6532 timer interrupt precautions
6532 timer interrupt precautions
Rockwell R6532 RAM IO Internal Timer Device (RIOT)
synertek sy6532

CMOS 6532

The 6532 exists in CMOS, I have only seen the California Micro Devices GSE 65SC32 variant.

Synertek 65C32 preliminary
GSE CMD 65SC32
GSE CMD 65SC32

Other RIOTs
In Rockwell databooks there are more RIOTs described. 6531, 6534. Never seen in the wild, a mention here and there of being used in pinball machines.
The timer/counter is a lot more capable, 16 bits etc.

R6531 ROM-RAM-I/O-Counter (RRIOC)
R6531 ROM-RAM-I/O-Counter (RRIOC)
R6531 ROM-RAM-I/O-Counter (RRIOC)
Rockwell R6534 ROM-IO-Counter (RIOC)

V1.3.7 KIM-1 Simulator

New version of the KIM-1 Simulator. Now version 1.3.5. 3 oktober, and now 9 oktober 1.3.7!

– text file upload in console also accepts UNIX style line endings and DOS type
– Debugger more visible in main form, and new menu with Search, Fill, Move/copy in memory
– added PRG Commodore binary file load and save (for the IEC users!)
– debugged and tested the VT100 codes of the console

Download at the usual place!