M e g a D O S v1.3 ========================= In Megabase, there was a quite attractive CLI system, called MegaDOS. Pity was, Megabase itself was crap. So, I have ripped it from Megabase. Re-Paletted the colours, spoofed it up, improved commands and routines, and so this is v1.3 The difference between AmigaDOS and MegaDOS ------------------------------------------- Although both completely different, they have many similarities. But, there are 2 main problems with MegaDOS... 1. All COMMANDS must be in lower case. 2. Any name of value, must be enclosed in speech marks. These are the only problems. There are MANY similar commands, such as DIR, RENAME, MAKEDIR, CD, COPY, and there are many EXTRA ones, like, MOVE, LOAD, PLAY, START MUSIC, STOP MUSIC, CLEAR MUSIC, INFO...... Commands -------- The LOAD command, loads up either a sample bank or music bank. Samples can be played, using the Play command like this... Play "number" "frequency" Or Music, can simply be played with a START MUSIC command. Here is a quick list. dir "path and/or filter" rename "source" "destination" makedir "new-directory" cd "new-directory" copy "Source file" "Dest Path+DEST NAME" move "Source file" "Dest Path+DEST NAME" load "filename" play "number" "frequency" start ( Starts any music in the Bank ) stop ( Stops any music playing ) clear music ( Clears the Music Bank. ( 3 ) ) clear sounds ( Clears Sample Bank ) prompt "new prompt" ed "filename for new BATCH file" execute "MegaDOS batchfile name" view "IFF Picture name ( Click to Exit )" system ( Displays CHIP, FAST and TOTAL ) listbank ( Displays any banks currently in memory ) amos "-filename- to run " MegaDOS is best compiled. During creation of this disk, MegaDOS was used to clean up files, sorting out directories, installing things, e.t.c. The good advantage, is that no commands have to be on a certain disk, they are all memory resident. Unlike DOS of course. Being written in AMOS though, causes problems for people to add new commands of their own. But, it is not too much of a problem, just read the TECH section of this document, to see how AMOS programmers can add their own commands. Tech ---- How to add commands: All command data is held in the procedure, ANALYZE. It is quite simple. Firstly, your programming will go something along the lines of.... If left$(c$,length of command)="command" . . . Actions . . . Goto EN ( This must be last, and it MUST be included ) End If You can call 2 procedures. GTWORD, and GT2WORD. The first one, gets anything following the command, and puts it in the string F$. Useful for commands like the PROMPT command. GT2WORD, gets 2, and the second is put in the string, F2$. Useful for commands like RENAME, and COPY. Here is the general idea.... ( For the PROMPT command ) If Left$(C$,6)="prompt" ( Notice, the LOWER CASE ) GTWORD ( Gets the string held in "" ) P$=F$ ( Prompt string held in P$ ) Goto EN ( Goes to the label EN, at the end of the Analyze procedure ) End If ( Ditto ! ) This means that if the user types `prompt "MegaDOS >"', then the following things happen.... GTWORD...... - Finds "", gets the middle bit, `MegaDOS >'. P$=F$ - Makes P$ equal the characters which were types Goto EN - Goes to the end of the procedure Then on the next input... MegaDOS > Easy huh ?!