Author Topic: ParaDOS Question!  (Read 2991 times)

0 Members and 1 Guest are viewing this topic.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1978
  • Likes Given: 4650
ParaDOS Question!
« on: 21:41, 28 August 13 »
Hi!


Do you know how I can patch PARADOS in a way that it starts up with:


ROMDOS D10: Disabled
IBM Formats : Enabled




Any help is appreciated :)

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline cngsoft

  • CPC664
  • ***
  • Posts: 145
  • Country: es
  • Liked: 537
  • Likes Given: 356
Re: ParaDOS Question!
« Reply #1 on: 16:07, 29 August 13 »
WINAPE includes PDOS-DDB.TXT that explains how the extra formats are handled on memory, and how to edit the ROM if needed.
Copy and paste:

ParaDOS uses a locking technique to reset the drive definitions to their default values when the CPC
gets reset. There is a slight possibility that some programs may confuse the locking system, but that
should be rare.

The lock works by placing the bytes #53 and #44 at address #BAFA and #BAFB respectively (ie.
"PD", short for ParaDOS). If these two bytes are intact, it is assumed that the bytes at addresses
#BAFC and #BAFD respectively are also intact, and these are used as the master copy of the DDB
and DPB (Drive Definition Byte and Drive Parameter Byte).

The values that are actually used to determine the number or tracks, number of sides, default side
and stepping mode are stored in the DDB at #BAFF. The byte at #BAFE determines the format
preference for DATA, SYSTEM and IBM formats. These two bytes are copied from #BAFC and
#BAFD on reset if the lock is intact. This allows a user-defined setting to be used, which will survive
through resets as long as the lock survives (for example, type |DRIVE, and configure the drive
settings. When you reset all the settings remain intact).

The actual values for the DDB are as follows:

Drive A:
---------
bit 7 - Head use when single-sided (Normally 0)
bit 6 - Single stepping (0) or double-stepping (1).
bit 5 - Number of tracks per side (0 = 40, 1 = 80)
bit 4 - Number of sides, single-sided (0) or double-sided (1).

Drive B:
---------
bit 3 - Head use when single-sided (Normally 0)
bit 2 - Single stepping (0) or double-stepping (1).
bit 1 - Number of tracks per side (0 = 40, 1 = 80)
bit 0 - Number of sides, single-sided (0) or double-sided (1).


The DPB bits are as follows:

Bit 3 - (0) Disable, (1)Enable Ultraform format rather than ROMDOS D10 (*Config says D1)
Bit 2 - (0) Disable, (1)Enable IBM format rather than ROMDOS D1 (*Config says D10).
Bit 1 - (0) Disable, (1)Enable extended DATA and SYSTEM formats (Electro Formats)
Bit 0 - Drive configuration (DDB) usage affected by formats. (0 = Unlocked, 1 = Locked)

The Format setup menu in ParaDOS has ROMDOS D10 and ROMDOS D1 switched in the menu.

So to make a temporary change to the drive definition, poke &baff or &bafe with the new value. To
make a semi-permanent change, poke &bafd or &bafc and the corresponding byte at &baff or
&bafe. To make a permanent change, change to ROM at address #1c00 (DDB) or #1c03 (DPB).

The correct default values for 40 track, single-sided drive B should be 0 and 0.

I personally use DDB=#03 (80 track, double-sided drive B) and DPB=#02 (Electro formats
enabled).

To allow 80 track, double-sided discs to be used in Drive B: use DDB=#03. Disabling Electro
formats allows 40 track, single-sided DATA and SYSTEM format discs to be used in drive B:
(if you can't see the banner right now my server is currently offline)

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1978
  • Likes Given: 4650
Re: ParaDOS Question!
« Reply #2 on: 19:16, 29 August 13 »
Thank you so much!!!  :) :) :)



TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1978
  • Likes Given: 4650
Re: ParaDOS Question!
« Reply #3 on: 19:43, 29 August 13 »
And here it is: Ladies and Gentlemen!

The all new VaraDOS, the ParaDOS with preselected Vortex format on Drive B  :)

I also added a checksum (at &FFFF), if case you would like to use it in a MegaFlash or similar.
Further the Headline (both actually) have been patched, so you see immediately that you are dealing with VaraDOS.
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.334
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 4014
  • Likes Given: 419
Re: ParaDOS Question!
« Reply #4 on: 10:42, 30 August 13 »
And you've uploaded it to the ROMs page for everyone to find?? :)

Bryce.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1978
  • Likes Given: 4650
Re: ParaDOS Question!
« Reply #5 on: 03:25, 31 August 13 »
And you've uploaded it to the ROMs page for everyone to find?? :)

Bryce.


I made a small Wiki page for it. But I haven't had the time for the above. Wanted to do it today, but had to extend my drivers licence, which took me the whole day and finally failed. Now I go to Snake and Jakes and get drunk!


Ok, guess I can to it this weekend ;-)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus