dp600xl
Creatures
Revisiting BASIC and poking through old C64 manuals.
Posts: 14
|
Post by dp600xl on Feb 21, 2022 6:20:45 GMT
Hello, I was wondering if anyone could help me understand this behaviour from my C64 mini: Step 1: Save BASIC file using SAVE "FNAME",8,1. File save is good. Can re-load file and it is OK. Step 2: Make changes to file. Step 3: Save file using SAVE "FNAME",8,1. File save appears good, reports "Saving. Ready." Step 5: Reload file. Step 6: LIST file to see that changes have NOT been saved. Result: In effect, I can only save a file the first time, and the file save is therefore permanent. Is this normal? I have the most recent firmware. This behaviour occurs using d64 images, the one created automatically by the C64 mini, as well as ones on my USB stick which were created with VICE. Any suggestions or help is appreciated. I am expecting a C64 maxi to arrive shortly, I'm hoping this behaviour does not repeat itself on that machine. The work around, I suppose, is to keep saving files with new names and deleting the old ones. I'm also wondering if this is how the C64 file system works, and that I probably skipped right into programming and missed some of the fundamentals. Your wise words and or ridicule are welcome. SOLUTION: After doing some research, found some extra commands that I have never seen before, some for renaming as well as deleting files. It worked! Also found that the save and replace command comes with a bug! infogalactic.com/info/Commodore_DOS#The_save-with-replace_bugPerhaps the real solution is to save a new file and delete the old one.
|
|
deafdaz
BASIC
Hi need to know how to make a post in the right thread for Basic please. Thanks
Posts: 2
|
Post by deafdaz on Jul 14, 2022 1:33:38 GMT
Not even sure if I am doing this right, sorry if my post is in the wrong place just need an answer concerning C64 basic is it possible to store a text in a string I.E A$="hello" and plot it on screen using x,y?
|
|
|
Post by c64stuff on Jul 15, 2022 1:06:34 GMT
Yes there's a command to scroll right and down. Can't remember it's been years but I know I used something to do that even if it was just printing the return key and space bar keyboard Petsci value code of that keyboard press to the screen a number of times based on a variable stored number to get in proper position of wherever I wanted text or Petsci graphics to be. Or maybe it was a TAB command using a static or variable stored number?
Far as saving a file goes yes always delete the old file before saving a new one under the same name to replace it because there is a bug in Commodore's original disk drive software.
|
|
|
Post by 38kfree on Jul 20, 2022 20:35:07 GMT
is it not save"@0:filename",8,1 I can confirm that it is indeed save"@0:filename",8,1 Which I have used without any problems on TheC64.
That's a zero after the @.
|
|