2020-06-04 15:32:14 +00:00
# tlc-apple2
2020-06-04 17:27:16 +00:00
![Image of the TLC ](https://github.com/david-schmidt/tlc-apple2/blob/master/doc/images/01TLC.png )
2020-06-04 15:32:14 +00:00
Some bits and bobs regarding the Tiger Learning Computer.
The TLC was a "toy" computer that had an Apple IIe at its core.
There was a UI that would come up by default that was an early,
proprietary windowing system that was little more than a program launcher.
The TLC can be booted and you can get into Applesoft BASIC without any problem.
The problem is that I/O is pretty difficult. No one with one of these
machines has come forward with the ability to get anything into or out of the
existing serial port.
2020-06-05 01:16:57 +00:00
The goal: get the ROM data of the TLC out of the machine. Hard to do without functional I/O.
2020-06-04 15:32:14 +00:00
### Audio to the rescue
One thing the TLC _does_ have is sound. And a headphone jack. So we have... output.
#### A long time ago...
In the dark ages, when dinosaurs roamed the Earth, there was cassette tape.
As an analog-digital storage medium. It was slow, crappy, error-prone, and all
that - but it at least worked.
Early Apple II specimens came with this audio interface built-in - the original Apple ][,
all the way through to the last Apple IIe.
But the audio jacks and attendant ROM code was missing from the IIgs, the IIc, and the IIc+.
And the TLC.
#### Steal all teh cassette ROM
Handily enough, the early ROM code is quite tidy and compact; this is before the days of the crazy
gymnastics of the IIe and beyond that moved Heaven and Earth to keep the entry points constant
(because programmers are bad, and used them literally). The angle of attack:
* Copy out just enough Apple II ROM code to do the moral equivalent of the monitor's save memory to tape command (i.e. `*300.400W` )
* Change cassette output (`$C020`) to speaker output (`$C030`)
* Assemble and get a raw hex dump of that code
* Type that code into the TLC's RAM and run it, dumping all non-banked ROM (`$C100-$FFFF`)
* Capture the audio on a modern computer
* Run that audio through CiderPress, which knows how to take tape audio and reconstruct data from it
2020-06-05 03:23:46 +00:00
* ???
2020-06-04 15:32:14 +00:00
* Profit
2020-06-05 01:16:57 +00:00
The source code to do these activities is in the `src` directory, and the resulting ROM from the Tiger Learning computer is in the `rom` directory. A few pictures of the machine and its on-screen interface are in `doc/images` .
2020-06-08 20:39:13 +00:00
#### ROM contents
2020-06-08 20:42:38 +00:00
The files [`C100-FFFF.bin` ](https://github.com/david-schmidt/tlc-apple2/blob/master/rom/C100-FFFF.bin )
and [`C100-FFFF.txt` ](https://github.com/david-schmidt/tlc-apple2/blob/master/rom/C100-FFFF.txt )
2020-06-08 20:39:13 +00:00
are binary and monitor dumps respectively of the ROM as seen normally (i.e. with no banking).
The files [`C800-CFFF.bin` ](https://github.com/david-schmidt/tlc-apple2/blob/master/rom/C800-CFFF.bin )
and [`C800-CFFF.txt` ](https://github.com/david-schmidt/tlc-apple2/blob/master/rom/C800-CFFF.txt )
are the view of ROM in that region after swapping slot 2 in (i.e. `lda $cfff` and `lda $c200` just before dumping).