1541 Emulator

From VoidWarranties - Hackerspace Antwerp, Belgium
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:

Revision as of 19:26, 2 January 2013

1541 Emulator
Remove the need for working 1541 drive/floppies...
Yvanj, Jobj, Jeffrey
Den Bunker

= Atmega/SSD based sollution






DOS based sollution



Software implementation

Because my testing machine has a 500GB SATA HDD, with EXT3 and NTFS partitions, installing DOS is problematic. USB booting with DOS should work, but memory extenders (HIMEM.SYS and EMM386) are conflicting most of the time with the routines which take care of USB support, resulting 99% of the time in a kernel panic, and in 60% of the time in data loss.

That's the reason why I've begun stuffing the data into a 3.5" floppy disk - those drives/disks are still common/usable, and they are easier than CD's/pen drives for random access. The problem I ran soon into, was the capacity of 1.44MB. It should be possible to reformat it to another size (up to 1.9MB if I recall correctly), but I chose for compression techniques because they're much more stable. I created a modular system which allows you to easily extend the DOS disks, and if the disks are formatted into a bigger size, maybe I can put some extra drivers in it.

boot sequence

  1. DOS kernel is loaded, config.sys is parsed
  2. core drivers (HIMEM.SYS only atm) are loaded
  3. DPMI extender is loaded so we can use more recent toolchains.
  4. plugin system is initialized
  5. plugins are loaded

Plugin architecture

Plugins are simple ZIP files which are extracted using PKUNZIP to a RAM drive. To illustrate the structure of a plug in, here's how it is loaded:

  1. PLUGNAME.ZIP is extracted to the RAM drive. It contains a directory PLUGNAME.
  2. RAMDRIVE:\PLUGNAME\LOAD.BAT is executed to alter environment variables/load device drivers in RAM.

Also, the floppy copies itself to a RAM disk using the plug in management system, so you can safely insert another floppy without the need to swap them each time you return to the shell.

Possible improvements

Personal tools
Content Creation
Belgian Spaces