A Minimal C64 Datasette Program Loader
pagetable.com
pagetable.com
Then, I made a short assembly routine to copy that datasette output while playing to the SID. (I think I used the volume register?). it made a very badly sampled sounding version :) was fun :)
The fastloaders that came after all worked fine using one pulse per bit.
https://groups.google.com/forum/#!topic/comp.sys.apple2/qXZy...
1) in get_block, we can replace "dec count" with "cpy count" It should save one or 2 cycles, if I'm not mistaken
2) get_countdown can be rewritten as follows:
ldy #$89
c4:
cpy #$89
bne c1
c0:
jsr get_byte
c1:
ldy #$89
bne c2
cx:
jsr get_byte
c2:
sty tmp_cntdwn
cmp tmp_cntdwn
bne c4
dey
cpy #$80
bne cx
rts
which saves probably 4 bytesIt would, but wouldn't it also set the carry flag? Thus the routine would always return with carry flag set.
Check the full source on GitHub.
I used the tape for a few days when I got my C64. It didn’t take more than a week before I realized that it was too slow and unreliable and talked my mom into getting the 1540 drive.
Still, I did the same thing!
It was expensive in the beginning, but later on it was cheap, at least in comparison to the 1541 floppy disk drive which was in the same price region as the C64 itself.
If you look at the hardware this is not surprising. The Datasette was basically a slightly modified cassette player. The Atari "Datasette" (410 Program Recorder) even looked like the typical portable cassette player of the time and could be used like one. It could play audio cassettes through an internal speaker. The 1541 and the 1541 II on the other hand were little 8-bit computers in their own right. They contained a 6502 (almost the same CPU as the C64) and there was software to use the floppy CPU as a co-processor.
>You could put one of the C64 tapes into your boom box and play them, and hear a series of unpleasant screeches and whoops.
You could not only play them, you could conveniently copy them with your boom box. This was the way software was pirated back then. A dual deck boom box with high speed dubbing - much faster than copying with the computer.
In the Netherlands there were also experiments where software was sent on FM radio. You recorded it on a audio cassette which you could then use in your Datasette.
While most people used regular 60 minutes audio cassettes for software there existed special 7 minute cassettes for some time. This saved you from a lot of winding and rewinding when you missed the program start.
Good times, good times...
https://en.wikipedia.org/wiki/BASICODE?wprov=sfla1
They also invented a kind of internal DSL within BASIC to get around inconsistencies in various BASIC dialects used by different platforms at the time.
(Technically functions were supported in some dialects at least, but they had to fit on one line and could only do mathematical operations, so they would be useless here.)
Pretty cool stuff.