6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 21, 2024 8:41 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu May 24, 2018 4:34 pm 
Offline

Joined: Thu May 24, 2018 4:30 pm
Posts: 2
I'm sure I'm missing something silly here, but surely I should be able to write to disk to the same file name once I've worked on more code in Turbo Macro Pro on the C64, yes? For example, I work for a night, then write my file to disk either as a sequence (via -> w) or as a binary PRG file (via -> s) and call it "FOO." The next day, I can come back and load "FOO" and write some more code, but if I try to use either command above and write "FOO" to disk again, I get a "file exists" error.

I'm sure I'm missing some newbie step involving writing to disk; what is it??


Top
 Profile  
Reply with quote  
PostPosted: Thu May 24, 2018 4:55 pm 
Offline

Joined: Tue Sep 03, 2002 12:58 pm
Posts: 336
It's been a long time since I've used a C64, and I have never used that assembler. But... you could try saving your file as @:FOO (or possibly @0:FOO). I think that was the syntax for "save and replace".


Top
 Profile  
Reply with quote  
PostPosted: Fri May 25, 2018 12:12 am 
Offline

Joined: Thu May 24, 2018 4:30 pm
Posts: 2
John West wrote:
It's been a long time since I've used a C64, and I have never used that assembler. But... you could try saving your file as @:FOO (or possibly @0:FOO). I think that was the syntax for "save and replace".


You are awesome!! @: did the trick! Thank you so much!


Top
 Profile  
Reply with quote  
PostPosted: Fri May 25, 2018 4:48 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8504
Location: Midwestern USA
shampoocell wrote:
John West wrote:
It's been a long time since I've used a C64, and I have never used that assembler. But... you could try saving your file as @:FOO (or possibly @0:FOO). I think that was the syntax for "save and replace".


You are awesome!! @: did the trick! Thank you so much!

Watch out for @SAVE (save-with-replace). Some Commodore floppy drives have problems with the save-with-replace function and end up trashing the BAM (block allocation map), cross-linking files and otherwise making a mess of the disk. The only Commodore drives I know of that correctly implement save-with-replace are the 1571 with the second revision ROMs and the 1581.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: