Dave McMurtrie's 1541 Routines dor the KIM-1
(c)2022 Dave McMurtrie
Get the original Program by Dave McMurtrie here:
https://commodore.international/kim-iec/kim1541_public.asm
https://commodore.international/kim-iec/kim1541.bin
visit https://commodore.international
and the youtube channel https://www.youtube.com/channel/UCWYuahcuxawiFujBmL6E1cg
This instruction is taken from the video
https://youtu.be/cK7mzGhBfHs
Start:
-
Set $00F1 to $00 to ensure the CPU is in decimal mode
-
Set up the interrupt vectors for BRK:
$17FA 00
$17FB 1C -
Load the KIM1541 Program (or burn it on an EPROM)
-
Loading and saving uses the same procedure as loading and saving to tape:
To save:
- Save start address (low/high) in $17F5, $17F6.
- Save end address+1 (low/high) in $17F7, $17F8.
- Write Programs ID ($01-$FE) in $17F9. (this will be the filename)
- Run address $2148 to save to disk
To load:
- Write Programs ID (the name on the Floppy - $01-$FE) to $17F9.
- Run address $2000 to load from disk.
- Save start address (low/high) in $17F5, $17F6.
Update: I've also changed one version to be loaded to $A000 for my ROM Module
Have fun,
webdoc.