randyrossi / bmc64

A bare metal Commodore 64 emulator for the Raspberry Pi with true 50hz/60hz smooth scrolling, low input latency and better audio/video sync.
GNU General Public License v3.0
491 stars 59 forks source link

vic 20 - saving a file from basic usually does not work #242

Open jinchoung opened 1 year ago

jinchoung commented 1 year ago

so i start my procedure by creating a blank .d64 disk in bmc64 and attach that to drive 8.

there's no way for me to attempt any programming in the vic20 because saving my work is so unreliable.

otherwise, really really fantastic. thanks much!

Kugelblitz360 commented 1 year ago

You need to "flush" the disk. BMC64 does not automatically write back the content.

jinchoung commented 1 year ago

You need to "flush" the disk. BMC64 does not automatically write back the content.

hi! WHOA! this sounds important but i have no idea what it means! can you expand?

thank you!

Kugelblitz360 commented 1 year ago

BMC64 minimizes writes to the SD card so you basically can just turn off the power without corrupting the file system. Unfortunately that means that all changes to a d64 are only in RAM, not on the disk, unless you either eject the disk (then it gets written back) or find the "flush" function that got implemented around the 3.6 version which basically ejects and re-inserts the disc. Powering off without ejecting means that all contents is lost.

jinchoung commented 1 year ago

oh wow! good to know! thank you very much.

ok so in order to "eject the disk" do i just "detach"? and then "attach" again to keep working? so basically just save a file and then "detach" to make it stick?

Kugelblitz360 commented 1 year ago

There should be a "flush disk" function in the menus that also can be applied to a key combination. In my setup Ctrl-F7 flushes the disk, but this is a manually set key combination.

jinchoung commented 1 year ago

oh great. i'll look for that. i tried finding a function in the menus but couldn't see anything but maybe it's reserved for a key bind. thank you very much for the all the info.

rhester72 commented 1 year ago

Detach will work.