Difference between revisions of "Disc Wizard"
From CPCWiki - THE Amstrad CPC encyclopedia!
(→Technical) |
(→Technical) |
||
Line 4: | Line 4: | ||
* Button triggers NMI | * Button triggers NMI | ||
+ | |||
* 8K ROM data has 4 regions. There is an NMI vector at offsets &0066, &0866, &1066 and &1866 within the ROM data. This suggests each of the 4 regions is selectable and mappable into the range &0000-&7ff. | * 8K ROM data has 4 regions. There is an NMI vector at offsets &0066, &0866, &1066 and &1866 within the ROM data. This suggests each of the 4 regions is selectable and mappable into the range &0000-&7ff. | ||
What is not clear is that when the chosen region is mapped into the Z80 memory space if the region in &0000-&7ff is repeated through to the end of &3fff. | What is not clear is that when the chosen region is mapped into the Z80 memory space if the region in &0000-&7ff is repeated through to the end of &3fff. | ||
− | * Region 0 | + | * Region 0 is for saving "DraySoftONE". |
− | * Region 1 | + | * Region 1 is for loading "DraySoftONE" |
− | * Region 2 | + | * Region 2 is for saving "DraySoftTWO". |
− | * Region 3 | + | * Region 3 is for loading "DraySoftTWO" |
It seems that the "1/2" switch on the PCB chooses between which 4k (assumption it is connected to A12 of the EPROM), then the "load/save" switch chooses between the 2k within that 4k (assumption it is connected to A11 of the EPROM). | It seems that the "1/2" switch on the PCB chooses between which 4k (assumption it is connected to A12 of the EPROM), then the "load/save" switch chooses between the 2k within that 4k (assumption it is connected to A11 of the EPROM). | ||
− | * | + | * Dissassembly of the code indicates it uses direct FDC disc access for loading/saving. A disc must be in the drive when the button is pressed. |
− | + | * Dissassembly of the code indicates it uses an I/O port &f0e0. It is not clear how this port is decoded and which address lines or data lines are important. Bit 0 of the data written to this potr appears to be set (1) to enable the ROM, and reset (0) to disable it. Function of the other bits are not yet known. Bits 2..7 don't seem to be used? | |
− | + | ||
− | * Dissassembly of the code indicates it uses an I/O port &f0e0 | + | |
* It is restricted to loading/saving using DATA format disc. It uses sectors &c1-&c8 and reads/writes this entire range on each track in a multi-sector operation. DATA format has 512 bytes per sector, so sectors &c1-&c8 is 4K. So it reads 4K from each track. | * It is restricted to loading/saving using DATA format disc. It uses sectors &c1-&c8 and reads/writes this entire range on each track in a multi-sector operation. DATA format has 512 bytes per sector, so sectors &c1-&c8 is 4K. So it reads 4K from each track. | ||
− | * Disc must be pre-formatted to DATA. | + | * Disc must be pre-formatted to DATA format. |
− | * You can't use it with a disc with existing files because it writes data at specific places on the disc. It does write a dummy directory to indicate | + | * You can't use it with a disc with existing files because it writes data at specific places on the disc. It does write a dummy directory entry to indicate there is data on there, but the device has the loader code in it, so you must use the device (or a separate program) to load them back. |
* Track 1 is used for temporary storage (it saves the screen here and reloads it after). | * Track 1 is used for temporary storage (it saves the screen here and reloads it after). | ||
Line 33: | Line 32: | ||
* It writes a dummy directory to track 0. | * It writes a dummy directory to track 0. | ||
− | * | + | * It appears the RAM exists under the Disc Wizard ROM when it's enabled. The code assumes it can use the stack to store the current register settings at the point the NMI is triggered, and this may be located under the Disc Wizard ROM. |
− | + | * It appears that when the CPC is reset, the Disc Wizard ROM is disabled. | |
− | + | ||
− | + | ||
− | * | + | |
− | + | ||
− | + | ||
− | + | ||
== Pictures == | == Pictures == |
Revision as of 07:56, 15 August 2013
The Disc Wizard was an addon from Draysoft & Evesham Micro Centre that allowed you to make dumps of the CPC memory to external storage, pretty much like the Multiface and similar interfaces.
Contents
Technical
- Button triggers NMI
- 8K ROM data has 4 regions. There is an NMI vector at offsets &0066, &0866, &1066 and &1866 within the ROM data. This suggests each of the 4 regions is selectable and mappable into the range &0000-&7ff.
What is not clear is that when the chosen region is mapped into the Z80 memory space if the region in &0000-&7ff is repeated through to the end of &3fff.
* Region 0 is for saving "DraySoftONE". * Region 1 is for loading "DraySoftONE" * Region 2 is for saving "DraySoftTWO". * Region 3 is for loading "DraySoftTWO"
It seems that the "1/2" switch on the PCB chooses between which 4k (assumption it is connected to A12 of the EPROM), then the "load/save" switch chooses between the 2k within that 4k (assumption it is connected to A11 of the EPROM).
- Dissassembly of the code indicates it uses direct FDC disc access for loading/saving. A disc must be in the drive when the button is pressed.
- Dissassembly of the code indicates it uses an I/O port &f0e0. It is not clear how this port is decoded and which address lines or data lines are important. Bit 0 of the data written to this potr appears to be set (1) to enable the ROM, and reset (0) to disable it. Function of the other bits are not yet known. Bits 2..7 don't seem to be used?
- It is restricted to loading/saving using DATA format disc. It uses sectors &c1-&c8 and reads/writes this entire range on each track in a multi-sector operation. DATA format has 512 bytes per sector, so sectors &c1-&c8 is 4K. So it reads 4K from each track.
- Disc must be pre-formatted to DATA format.
- You can't use it with a disc with existing files because it writes data at specific places on the disc. It does write a dummy directory entry to indicate there is data on there, but the device has the loader code in it, so you must use the device (or a separate program) to load them back.
- Track 1 is used for temporary storage (it saves the screen here and reloads it after).
- It doesn't use the memory paging registers, so saves the RAM in it's current configuration. It saves the entire 64k starting at track 5 (for "1").
- It writes a dummy directory to track 0.
- It appears the RAM exists under the Disc Wizard ROM when it's enabled. The code assumes it can use the stack to store the current register settings at the point the NMI is triggered, and this may be located under the Disc Wizard ROM.
- It appears that when the CPC is reset, the Disc Wizard ROM is disabled.
Pictures
Manual
Download
- DiscWizard v1.2 zipped ROM file (ROM image for Emulators)
Links
- Disc Wizard at the English-language Wikipedia (Disc Wizard is mentioned in the Multiface's Similar products section)