Differences
This shows you the differences between two versions of the page.
|
commodore_basic:disk_command [2012/06/22 13:28] hydrophilic fixed order in first table, added links to keywords and tokens |
commodore_basic:disk_command [2012/10/12 09:51] (current) hydrophilic Added version 4.7 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== Disk Commands ==== | ==== Disk Commands ==== | ||
| - | The following is a list of Commodore BASIC disk commands and statements, sorted by [[keywords|Keyword]] then [[tokens|Token]] (which often relates to Version). Note the same keyword may have a different token in version 4.0 as compared to version 3.5, 7.0 and later. | + | The following is a list of Commodore BASIC disk commands and statements, sorted by [[keywords|Keyword]] then [[tokens|Token]] (which often relates to Version). Note the same keyword may have a different token in version 4.0 or 4.7 as compared to versions 3.5, 7.0 and later. |
| ^ Keyword ^ Token ^ Version ^ Category(s) ^ | ^ Keyword ^ Token ^ Version ^ Category(s) ^ | ||
| - | | [[append|APPEND]] | $D4 | 4.0 | Command and Statement | | + | | [[append|APPEND]] | $D4 | 4.0, 4.7 | Command and Statement | |
| - | | [[append|APPEND]] | $FE $0E | 7.0 | Command and Statement | | + | | [[append|APPEND]] | $FE $0E | 7.0+ | Command and Statement | |
| - | | [[backup|BACKUP]] | $D2 | 4.0 | Command and Statement | | + | | [[backup|BACKUP]] | $D2 | 4.0, 4.7 | Command and Statement | |
| | [[backup|BACKUP]] | $F6 | 3.5, 7.0+ | Command and Statement | | | [[backup|BACKUP]] | $F6 | 3.5, 7.0+ | Command and Statement | | ||
| - | | [[boot|BOOT]] | $FE $1B | 7.0 | Command and Statement | | + | | [[bload|BLOAD]] | $DD | 4.7 | Command and Statement | |
| - | | [[bsave|BSAVE]] | $FE $10 | 7.0 | Command and Statement | | + | | [[bload|BLOAD]] | $FE $11 | 7.0+ | Command and Statement | |
| - | | [[bload|BLOAD]] | $FE $11 | 7.0 | Command and Statement | | + | | [[boot|BOOT]] | $FE $1B | 7.0+ | Command and Statement | |
| - | | [[catalog|CATALOG]] | $D7 | 4.0 | Command and Statement | | + | | [[bsave|BSAVE]] | $DE | 4.7 | Command and Statement | |
| - | | [[catalog|CATALOG]] | $FE $0C | 7.0 | Command and Statement | | + | | [[bsave|BSAVE]] | $FE $10 | 7.0+ | Command and Statement | |
| - | | [[collect|COLLECT]] | $D1 | 4.0 | Command and Statement | | + | | [[catalog|CATALOG]] | $D7 | 4.0, 4.7 | Command and Statement | |
| + | | [[catalog|CATALOG]] | $FE $0C | 7.0+ | Command and Statement | | ||
| + | | [[collect|COLLECT]] | $D1 | 4.0, 4.7 | Command and Statement | | ||
| | [[collect|COLLECT]] | $F3 | 3.5, 7.0+ | Command and Statement | | | [[collect|COLLECT]] | $F3 | 3.5, 7.0+ | Command and Statement | | ||
| - | | [[concat|CONCAT]] | $CC | 4.0 | Command and Statement | | + | | [[concat|CONCAT]] | $CC | 4.0, 4.7 | Command and Statement | |
| - | | [[concat|CONCAT]] | $FE $13 | 7.0 | Command and Statement | | + | | [[concat|CONCAT]] | $FE $13 | 7.0+ | Command and Statement | |
| - | | [[copy|COPY]] | $D3 | 4.0 | Command and Statement | | + | | [[copy|COPY]] | $D3 | 4.0, 4.7 | Command and Statement | |
| | [[copy|COPY]] | $F4 | 3.5, 7.0+ | Command and Statement | | | [[copy|COPY]] | $F4 | 3.5, 7.0+ | Command and Statement | | ||
| - | | [[dclear|DCLEAR]] | $FE $15 | 7.0 | Command and Statement | | + | | [[dclear|DCLEAR]] | $DB | 4.7 | Command and Statement | |
| - | | [[dclose|DCLOSE]] | $CE | 4.0 | Command and Statement | | + | | [[dclear|DCLEAR]] | $FE $15 | 7.0+ | Command and Statement | |
| - | | [[dclose|DCLOSE]] | $FE $0F | 7.0 | Command and Statement | | + | | [[dclose|DCLOSE]] | $CE | 4.0, 4.7 | Command and Statement | |
| - | | [[directory|DIRECTORY]] | $DA | 4.0 | Command and Statement | | + | | [[dclose|DCLOSE]] | $FE $0F | 7.0+ | Command and Statement | |
| + | | [[directory|DIRECTORY]] | $DA | 4.0, 4.7 | Command and Statement | | ||
| | [[directory|DIRECTORY]] | $EE | 3.5, 7.0+ | Command and Statement | | | [[directory|DIRECTORY]] | $EE | 3.5, 7.0+ | Command and Statement | | ||
| - | | [[dload|DLOAD]] | $D6 | 4.0 | Command* | | + | | [[dload|DLOAD]] | $D6 | 4.0, 4.7 | Command* | |
| | [[dload|DLOAD]] | $F0 | 3.5, 7.0+ | Command and Statement | | | [[dload|DLOAD]] | $F0 | 3.5, 7.0+ | Command and Statement | | ||
| - | | [[dopen|DOPEN]] | $CD | 4.0 | Command and Statement | | + | | [[dopen|DOPEN]] | $CD | 4.0, 4.7 | Command and Statement | |
| - | | [[dopen|DOPEN]] | $FE $0D | 7.0 | Command and Statement | | + | | [[dopen|DOPEN]] | $FE $0D | 7.0+ | Command and Statement | |
| - | | [[dsave|DSAVE]] | $D5 | 4.0 | Command and Statement | | + | | [[dsave|DSAVE]] | $D5 | 4.0, 4.7 | Command and Statement | |
| | [[dsave|DSAVE]] | $EF | 3.5, 7.0+ | Command and Statement | | | [[dsave|DSAVE]] | $EF | 3.5, 7.0+ | Command and Statement | | ||
| - | | [[dverify|DVERIFY]] | $FE $14 | 7.0 | Command and Statement | | + | | [[dverify|DVERIFY]] | $FE $14 | 7.0+ | Command and Statement | |
| - | | [[header|HEADER]] | $D0 | 4.0 | Command and Statement | | + | | [[header|HEADER]] | $D0 | 4.0, 4.7 | Command and Statement | |
| | [[header|HEADER]] | $F1 | 3.5, 7.0+ | Command and Statement | | | [[header|HEADER]] | $F1 | 3.5, 7.0+ | Command and Statement | | ||
| - | | [[record|RECORD]] | $CF | 4.0 | Command and Statement | | + | | [[record|RECORD]] | $CF | 4.0, 4.7 | Command and Statement | |
| - | | [[record|RECORD]] | $FE $12 | 7.0 | Command and Statement | | + | | [[record|RECORD]] | $FE $12 | 7.0+ | Command and Statement | |
| - | | [[rename|RENAME]] | $D8 | 4.0 | Command and Statement | | + | | [[rename|RENAME]] | $D8 | 4.0, 4.7 | Command and Statement | |
| | [[rename|RENAME]] | $F5 | 3.5, 7.0+ | Command and Statement | | | [[rename|RENAME]] | $F5 | 3.5, 7.0+ | Command and Statement | | ||
| - | | [[run|RUN]] | $8A | 7.0 | Command and Statement | | + | | [[run|RUN]] | $8A | 7.0+ | Command and Statement | |
| - | | [[scratch|SCRATCH]] | $D9 | 4.0 | Command and Statement | | + | | [[scratch|SCRATCH]] | $D9 | 4.0, 4.7 | Command and Statement | |
| | [[scratch|SCRATCH]] | $F2 | 3.5, 7.0+ | Command and Statement | | | [[scratch|SCRATCH]] | $F2 | 3.5, 7.0+ | Command and Statement | | ||
| Line 88: | Line 91: | ||
| === Incompatibility === | === Incompatibility === | ||
| - | Although the commands have the same syntax in the various versions of BASIC (thus maintaing source compatibility), the tokens assigned in version 4.0 varies from other versions (thus breaking binary compatibility). Fail! | + | Although the commands have the same syntax in the various versions of BASIC (thus maintaing source compatibility), the tokens assigned in version 4.0 and 4.7 varies from other versions (thus breaking binary compatibility). Fail! |
| To help sort the mess out, here is an alternate table listing the disk commands (ordered by token number). | To help sort the mess out, here is an alternate table listing the disk commands (ordered by token number). | ||
| - | ^ Keyword ^ Version 4.0 ^ Version 3.5 ^ Version 7.0+ ^ | + | ^ Keyword ^ Version 4.0 ^ Version 4.7 ^ Version 3.5 ^ Version 7.0+ ^ |
| - | | [[run|RUN]] | n/a | n/a | $8A | | + | | [[run|RUN]] | n/a | n/a | n/a | $8A | |
| - | | [[concat|CONCAT]] | $CC | n/a | $FE $13 | | + | | [[concat|CONCAT]] | $CC | $CC | n/a | $FE $13 | |
| - | | [[dopen|DOPEN]] | $CD | n/a | $FE $0D | | + | | [[dopen|DOPEN]] | $CD | $CD | n/a | $FE $0D | |
| - | | [[dclose|DCLOSE]] | $CE | n/a | $FE $0F | | + | | [[dclose|DCLOSE]] | $CE | $CE | n/a | $FE $0F | |
| - | | [[record|RECORD]] | $CF | n/a | $FE $12 | | + | | [[record|RECORD]] | $CF | $CF | n/a | $FE $12 | |
| - | | [[header|HEADER]] | $D0 | $F1 | $F1 | | + | | [[header|HEADER]] | $D0 | $D0 | $F1 | $F1 | |
| - | | [[collect|COLLECT]] | $D1 | $F3 | $F3 | | + | | [[collect|COLLECT]] | $D1 | $D1 | $F3 | $F3 | |
| - | | [[backup|BACKUP]] | $D2 | $F6 | $F6 | | + | | [[backup|BACKUP]] | $D2 | $D2 | $F6 | $F6 | |
| - | | [[copy|COPY]] | $D3 | $F4 | $F4 | | + | | [[copy|COPY]] | $D3 | $D3 | $F4 | $F4 | |
| - | | [[append|APPEND]] | $D4 | n/a | $FE $0E | | + | | [[append|APPEND]] | $D4 | $D4 | n/a | $FE $0E | |
| - | | [[dsave|DSAVE]] | $D5 | $EF | $EF | | + | | [[dsave|DSAVE]] | $D5 | $D5 | $EF | $EF | |
| - | | [[dload|DLOAD]] | $D6 | $F0 | $F0 | | + | | [[dload|DLOAD]] | $D6 | $D6 | $F0 | $F0 | |
| - | | [[catalog|CATALOG]] | $D7 | n/a | $FE $0C | | + | | [[catalog|CATALOG]] | $D7 | $D7 | n/a | $FE $0C | |
| - | | [[rename|RENAME]] | $D8 | $F5 | $F5 | | + | | [[rename|RENAME]] | $D8 | $D8 | $F5 | $F5 | |
| - | | [[scratch|SCRATCH]] | $D9 | $F2 | $F2 | | + | | [[scratch|SCRATCH]] | $D9 | $D9 | $F2 | $F2 | |
| - | | [[directory|DIRECTORY]] | $DA | $EE | $EE | | + | | [[directory|DIRECTORY]] | $DA | $DA | $EE | $EE | |
| - | | [[bsave|BSAVE]] | n/a | n/a | $FE $10 | | + | | [[dclear|DCLEAR]] | n/a | $DB | n/a | $FE $15 | |
| - | | [[bload|BLOAD]] | n/a | n/a | $FE $11 | | + | | [[bload|BLOAD]] | n/a | $DD | n/a | $FE $11 | |
| - | | [[dverify|DVERIFY]] | n/a | n/a | $FE $14 | | + | | [[bsave|BSAVE]] | n/a | $DE | n/a | $FE $10 | |
| - | | [[dclear|DCLEAR]] | n/a | n/a | $FE $15 | | + | | [[dverify|DVERIFY]] | n/a | n/a | n/a | $FE $14 | |
| - | | [[boot|BOOT]] | n/a | n/a | $FE $1B | | + | | [[boot|BOOT]] | n/a | n/a | n/a | $FE $1B | |
| Here is the alternate table listing again (ordered by name). | Here is the alternate table listing again (ordered by name). | ||
| - | ^ Keyword ^ Version 4.0 ^ Version 3.5 ^ Version 7.0+ ^ | + | ^ Keyword ^ Version 4.0 ^ Version 4.7 ^ Version 3.5 ^ Version 7.0+ ^ |
| - | | [[append|APPEND]] | $D4 | n/a | $FE $0E | | + | | [[append|APPEND]] | $D4 | $D4 | n/a | $FE $0E | |
| - | | [[backup|BACKUP]] | $D2 | $F6 | $F6 | | + | | [[backup|BACKUP]] | $D2 | $D2 | $F6 | $F6 | |
| - | | [[bload|BLOAD]] | n/a | n/a | $FE $11 | | + | | [[bload|BLOAD]] | n/a | $DD | n/a | $FE $11 | |
| - | | [[boot|BOOT]] | n/a | n/a | $FE $1B | | + | | [[boot|BOOT]] | n/a | n/a | n/a | $FE $1B | |
| - | | [[bsave|BSAVE]] | n/a | n/a | $FE $10 | | + | | [[bsave|BSAVE]] | n/a | $DE | n/a | $FE $10 | |
| - | | [[catalog|CATALOG]] | $D7 | n/a | $FE $0C | | + | | [[catalog|CATALOG]] | $D7 | $D7 | n/a | $FE $0C | |
| - | | [[collect|COLLECT]] | $D1 | $F3 | $F3 | | + | | [[collect|COLLECT]] | $D1 | $D1 | $F3 | $F3 | |
| - | | [[concat|CONCAT]] | $CC | n/a | $FE $13 | | + | | [[concat|CONCAT]] | $CC | $CC | n/a | $FE $13 | |
| - | | [[copy|COPY]] | $D3 | $F4 | $F4 | | + | | [[copy|COPY]] | $D3 | $D3 | $F4 | $F4 | |
| - | | [[dclear|DCLEAR]] | n/a | n/a | $FE $15 | | + | | [[dclear|DCLEAR]] | n/a | $DB | n/a | $FE $15 | |
| - | | [[dclose|DCLOSE]] | $CE | n/a | $FE $0F | | + | | [[dclose|DCLOSE]] | $CE | $CE | n/a | $FE $0F | |
| - | | [[directory|DIRECTORY]] | $DA | $EE | $EE | | + | | [[directory|DIRECTORY]] | $DA | $DA | $EE | $EE | |
| - | | [[dload|DLOAD]] | $D6 | $F0 | $F0 | | + | | [[dload|DLOAD]] | $D6 | $D6 | $F0 | $F0 | |
| - | | [[dopen|DOPEN]] | $CD | n/a | $FE $0D | | + | | [[dopen|DOPEN]] | $CD | $CD | n/a | $FE $0D | |
| - | | [[dsave|DSAVE]] | $D5 | $EF | $EF | | + | | [[dsave|DSAVE]] | $D5 | $D5 | $EF | $EF | |
| - | | [[dverify|DVERIFY]] | n/a | n/a | $FE $14 | | + | | [[dverify|DVERIFY]] | n/a | n/a | n/a | $FE $14 | |
| - | | [[header|HEADER]] | $D0 | $F1 | $F1 | | + | | [[header|HEADER]] | $D0 | $D0 | $F1 | $F1 | |
| - | | [[record|RECORD]] | $CF | n/a | $FE $12 | | + | | [[record|RECORD]] | $CF | $CF | n/a | $FE $12 | |
| - | | [[rename|RENAME]] | $D8 | $F5 | $F5 | | + | | [[rename|RENAME]] | $D8 | $D8 | $F5 | $F5 | |
| - | | [[run|RUN]] | n/a | n/a | $8A | | + | | [[run|RUN]] | n/a | n/a | n/a | $8A | |
| - | | [[scratch|SCRATCH]] | $D9 | $F2 | $F2 | | + | | [[scratch|SCRATCH]] | $D9 | $D9 | $F2 | $F2 | |
| Compare with [[open|OPEN]],[[load|LOAD]],[[save|SAVE]],[[verify|VERIFY]]\\ | Compare with [[open|OPEN]],[[load|LOAD]],[[save|SAVE]],[[verify|VERIFY]]\\ | ||