Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .------------------------------------------------.
- ( A P E N D I X C : F I L E M A N A G E M E N T )
- `------------------------------------------------ยด
- o==========o
- | Contents |
- o==========o
- general contents: https://pastebin.com/hmpJmurr
- A. General
- B. When channel is still open
- X. References
- -<>-<>-<>-<>-<>-<>-
- o============o
- | A. General |
- o============o
- I like using the 'The C64' clone [2]. It does not support 2 disk drives. So in that case, if one has to copy a file from one disk image to another, one can use disk swapping or a (virtual) RAM disk. Use the nice program 'DraCopy' for this (supports REU) [3].
- I do not know if it is possible from the command line (i.e. BASIC) to copy files from one drive to another (RAM drive). If that's possible then one might use use the cartridge 'Super Snapshot'. It has a shortcut for opening and closing a channel to a floppy drive: the ">" character. It can also rearrange files.
- Save
- ~~~~
- SAVE "program name",8
- Rename
- ~~~~~~
- OPEN 1,8,15,"R0:new name=old name":CLOSE 1
- Delete (scratch)
- ~~~~~~~~~~~~~~~~
- OPEN 1,8,15,"S0:file name":CLOSE 1
- Validate
- ~~~~~~~~
- OPEN 1,8,15,"V0:":CLOSE 1
- Overwrite
- ~~~~~~~~~
- This is the infamous save-with-replace command. Only use on a 1541-II drive or newer. This command may mess up a complete disk on a 1541 drive. SAVE "@0:MY PROGRAM",8
- o===============================o
- | B. When channel is still open |
- o===============================o
- Open with:
- OPEN 1,8,15
- Delete (if 1 is what I call the "channel number", oficially it's "file number"):
- PRINT# 1, "S0:file name"
- Close with:
- CLOSE 1
- See [1] page 14.
- o===============o
- | X. References |
- o===============o
- [1] "Commodore 1541 disk drive user's guide", Commodore Business Machines Electronics Ltd. (sept. 1982).
- [2] The C64 Microcomputer (clone):
- https://retrogames.biz/thec64
- [3] DraCopy version 1.0e:
- https://csdb.dk/release/?id=165305
Add Comment
Please, Sign In to add comment