DWEEBS - applications for DWLOAD - DriveWire
Posted: Fri Nov 07, 2014 1:17 pm
Hello
This is a thread in wich we could share the programs we make that work together with DWLOAD, the Tormod's program that allows loading any file from the PC world to the Dragon,
if you use the patched ROM instead the standard one or use the HighRam version.
This very first message is dedicated to my first dweeb, its name: LROM
The goals of this dweeb are:
1) allow the user to run any ROM file from the archive, loading and running it at $C000. The syntax for this is:
DLOAD"LROM""ROMName (no need to put the .ROM extension)
It adds the .ROM extension if none is present in the command line
If you have quite a lot of them, it is a good idea to create a folder inside the drivewire folder, I named it ROM (not that strange!)
Then you have to call the ROMs inside the folder like this:
DLOAD"LROM""ROM/ROMName
2) allow the user to save the ROM to a real diskdrive (if desired). The syntax for this is:
DLOAD"LROM"N"ROMName
in this case you just need to know the ROM length and do:
SAVE"ROMName",&H3000,&H3000+length,&H3000
Later you can load it to RAM and with the help of a small machine language routine switch to MAP1,
copy the ROM from $C000 on and finally jump to it
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Pre-requisites:
- The ROM must have a length multiple of 256 bytes (due to DriveWire). In case you have ROMs that are not that length, if you use Linux or MacOS-X you may use the pad256 script
that Tormod loaded in the "DWLOAD - DriveWire for everybody" thread.
If you are a Windows user, you may use a java application (uploaded here) with the name: Pad256.jar
- The computer MUST have 64k because the program needs to switch to MAP1 (all RAM) and copies there the Basic Interpreter as well as the ROM program to be executed
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The cases with length equal to 16384, would overwrite Dragon I/O area. To avoid this, the dweeb loads from DW4 to RAM the whole 16k so that you could copy all of it,
but will only write into upper RAM (MAP1) 16k-256bytes.
Note:
It will accept the use of variables, for instance
A$="APP/LROM"
B$="ROM/ASTRO"
DLOADA$B$ will start it, while
DLOADA$NB$ will just load it
=====================================================================================================
Pad256 (JAVA utility)
- Allows multi-file selection from a directory/folder (any kind of file) by keeping Control pressed (windows style)
- Converts each one to DW compatible by adding the needed nulls to make its length multiple of 256
It creates a new file by adding -DW4 before the ".ext" (you can rename it later)
If the new file already exists, notifies this and doesn't do anything on it.
- on finishing all of the selected files, it goes back to the file-select window.
Cancelling will return to the system
cheers
pere
This is a thread in wich we could share the programs we make that work together with DWLOAD, the Tormod's program that allows loading any file from the PC world to the Dragon,
if you use the patched ROM instead the standard one or use the HighRam version.
This very first message is dedicated to my first dweeb, its name: LROM
The goals of this dweeb are:
1) allow the user to run any ROM file from the archive, loading and running it at $C000. The syntax for this is:
DLOAD"LROM""ROMName (no need to put the .ROM extension)
It adds the .ROM extension if none is present in the command line
If you have quite a lot of them, it is a good idea to create a folder inside the drivewire folder, I named it ROM (not that strange!)
Then you have to call the ROMs inside the folder like this:
DLOAD"LROM""ROM/ROMName
2) allow the user to save the ROM to a real diskdrive (if desired). The syntax for this is:
DLOAD"LROM"N"ROMName
in this case you just need to know the ROM length and do:
SAVE"ROMName",&H3000,&H3000+length,&H3000
Later you can load it to RAM and with the help of a small machine language routine switch to MAP1,
copy the ROM from $C000 on and finally jump to it
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Pre-requisites:
- The ROM must have a length multiple of 256 bytes (due to DriveWire). In case you have ROMs that are not that length, if you use Linux or MacOS-X you may use the pad256 script
that Tormod loaded in the "DWLOAD - DriveWire for everybody" thread.
If you are a Windows user, you may use a java application (uploaded here) with the name: Pad256.jar
- The computer MUST have 64k because the program needs to switch to MAP1 (all RAM) and copies there the Basic Interpreter as well as the ROM program to be executed
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The cases with length equal to 16384, would overwrite Dragon I/O area. To avoid this, the dweeb loads from DW4 to RAM the whole 16k so that you could copy all of it,
but will only write into upper RAM (MAP1) 16k-256bytes.
Note:
It will accept the use of variables, for instance
A$="APP/LROM"
B$="ROM/ASTRO"
DLOADA$B$ will start it, while
DLOADA$NB$ will just load it
=====================================================================================================
Pad256 (JAVA utility)
- Allows multi-file selection from a directory/folder (any kind of file) by keeping Control pressed (windows style)
- Converts each one to DW compatible by adding the needed nulls to make its length multiple of 256
It creates a new file by adding -DW4 before the ".ext" (you can rename it later)
If the new file already exists, notifies this and doesn't do anything on it.
- on finishing all of the selected files, it goes back to the file-select window.
Cancelling will return to the system
cheers
pere