1541 Emulator

From VoidWarranties - Hackerspace Antwerp, Belgium
(Difference between revisions)
Jump to: navigation, search
(Software)
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{Project
 
{{Project
|Current=Yes
+
|Current=No
 
|Category=Misc
 
|Category=Misc
|Logo=1541.jpg
+
|Logo=1541emulogo.png
|Participants=Yvanj, Jobj, Jeffrey,
+
|Participants=, Jobj, Jeffrey,
 
|Locations=Den Bunker,
 
|Locations=Den Bunker,
|Short description=Remove the need for working 1541 drive/floppies
+
|Short description=Remove the need for working 1541 drive/floppies...
 
}}
 
}}
= Requirements =
+
= Atmega/SSD based sollution
 +
== Links ==
 +
http://www.forum64.de/wbb3/board65-neue-hardware/board284-massenspeicher/board194-mmc2iec/36611-step-by-step-sd2iec-lochraster-nachbau/ <br>
 +
 
 +
http://www.pitsch.de/stuff/mmc2iec/index.htm <br>
 +
 
 +
 
 +
http://www.nkcelectronics.com/sd2iec-boar2.html <br>
 +
 
 +
= DOS based sollution =
  
 
== Software ==
 
== Software ==
Line 15: Line 24:
 
** 64HDD
 
** 64HDD
 
*** commercial, so not recomended
 
*** commercial, so not recomended
 +
*** major issues with fastloaders and copy protections.
 
** [http://www.kotinet.com/1541/ 1541EMU]  
 
** [http://www.kotinet.com/1541/ 1541EMU]  
 
*** requires
 
*** requires
 
**** [http://sta.c64.org/1541emu.html special cabling],  
 
**** [http://sta.c64.org/1541emu.html special cabling],  
 
**** [http://www.kotinet.com/1541/type0.htm alternatieve design (prefered)] [http://www.kotinet.com/1541/type1.htm jet an other design]
 
**** [http://www.kotinet.com/1541/type0.htm alternatieve design (prefered)] [http://www.kotinet.com/1541/type1.htm jet an other design]
**** DB 15 Male (or USB plug) (for mowering the cable)
+
**** DB 15 Male (or USB plug) (for powering the cable) (got them)
**** DB 25 Male for data to Dos Box  
+
**** DB 25 Male for data to Dos Box   (Got them)
**** Din 6 Male (for C64 serial port
+
**** Din 6 Male (for C64 serial port) (female if you build it into a box)
**** 7406 invertor IC
+
**** [http://www.ti.com/lit/ds/symlink/sn7416.pdf 7406] Hex invertor IC ([[Yvanj]] is fetching two pieces atm)
**** 74LS14
+
**** [http://web.mit.edu/6.115/www/datasheets/DM74LS14.pdf 74LS14] Hex Invertor IC ([[Yvanj]] is fetching two pieces atm)
**** [http://maven.smith.edu/~thiebaut/270/datasheets/sn74ls86rev5.pdf 74LS86] Exlusive OR gate
+
**** [http://maven.smith.edu/~thiebaut/270/datasheets/sn74ls86rev5.pdf 74LS86] Exlusive OR gate ([[Yvanj]] is fetching two pieces atm)
 +
*** proven to be WORKING!!!!
 +
**** USB not powering within DOS, that's an issue, but you can overcome it with an USB MP3/iPod/Cell Phone/Whatever charger connected to the plug.
 +
**** Fastloaders like FCIII work just fine.
  
 
== Hardware ==
 
== Hardware ==

Latest revision as of 12:11, 3 August 2013


1541 Emulator
What:
Remove the need for working 1541 drive/floppies...
1541emulogo.png
Participants:
Jobj, Jeffrey
Category:
Misc
Locations:
Den Bunker

= Atmega/SSD based sollution

Contents

Links

http://www.forum64.de/wbb3/board65-neue-hardware/board284-massenspeicher/board194-mmc2iec/36611-step-by-step-sd2iec-lochraster-nachbau/

http://www.pitsch.de/stuff/mmc2iec/index.htm


http://www.nkcelectronics.com/sd2iec-boar2.html

DOS based sollution

Software

Hardware

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
Namespaces
Variants
Actions
Navigation
Toolbox
Content Creation
Belgian Spaces