Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
CSDb User Forums


Forums > C64 Coding > Loading and saving to disk using kernel
2018-06-13 18:59
JackAsser

Registered: Jun 2002
Posts: 1620
Loading and saving to disk using kernel

Assume: Machine booted from cart. Cart ROM at $8000-$bfff. IO at $Dxxx and KERNAL at $e000-$ffff

What calls do I have to do to use KERNEL load/save?
What RAM and ZP will be trashed by this?
How will it affect my IRQs? (I have CIA1 and raster IRQs running via $0314/15)
 
... 23 posts hidden. Click here to view all posts....
 
2020-04-06 09:38
oziphantom

Registered: Oct 2014
Posts: 398
have you made an intentional or unintentional modifications to dd02/3
2020-04-06 09:57
Rastah Bar

Registered: Oct 2012
Posts: 206
Intentional no, unintentional unlikely.
2020-04-06 10:41
tlr

Registered: Sep 2003
Posts: 1286
dd02 and dd03 was my thought also initially but $fda3 resets those.

Perhaps you have fiddled with the IEC bits in $dd00 and left the bus in a bad state? The drive could be hanging waiting for something to complete perhaps?
2020-04-06 10:50
Rastah Bar

Registered: Oct 2012
Posts: 206
It looks a bit as if something went wrong while saving the file, althoug no error was returned. When I try to load the file directly from Basic after a cold start with load "*",8 or load "*",8,1 the same problem happens.
2020-04-06 13:50
tlr

Registered: Sep 2003
Posts: 1286
Well, then it was a red herring...
2020-04-06 15:28
Rastah Bar

Registered: Oct 2012
Posts: 206
It was a bug in my code that calls the save routine (as you probably already suspected). Sorry about that. Thanks for your suggestions. They still helped me.
2020-04-07 08:47
Krill

Registered: Apr 2002
Posts: 1440
Care to explain what exactly the bug was? Could help others to prevent a similar error. =)
2020-04-07 09:20
Rastah Bar

Registered: Oct 2012
Posts: 206
I could talk all day about the silly bugs I make. The file start and end addresses were set incorrectly.

I noticed some emulator differences: micro64 prints messages like "searching for", but Vice and Hox don't.
2020-04-07 11:32
Groepaz

Registered: Dec 2001
Posts: 9220
You should not see any such differences - this is a kernal thing. You might have another bug - related to non initialized RAM (thats where the emulators differ).
2020-04-08 11:28
Rastah Bar

Registered: Oct 2012
Posts: 206
Thanks for the hint. MSGFLG ($9D) was the culprit. Fast loading in micro64 sets this to Direct Mode.
Previous - 1 | 2 | 3 | 4 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
iceladoftide
Yogibear/Protovision
Shocker/Onslaught
Ice Breaker/DWI
Guests online: 57
Top Demos
1 Uncensored  (9.7)
2 Coma Light 13  (9.7)
3 Edge of Disgrace  (9.7)
4 Comaland 100%  (9.6)
5 Unboxed  (9.6)
6 The Shores of Reflec..  (9.6)
7 Remains  (9.6)
8 NGC 1277 100%  (9.5)
9 Lunatico  (9.5)
10 C=Bit 18  (9.5)
Top onefile Demos
1 Dawnfall V1.1  (9.6)
2 Crystal Gazer  (9.6)
3 Fluffer  (9.5)
4 Smile to the Sky  (9.5)
5 The Tuneful Eight [u..  (9.5)
6 Instinct  (9.5)
7 Rewind  (9.5)
8 Bad Boy  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Gumbo Revised  (9.4)
Top Groups
1 PriorArt  (9.6)
2 Oxyron  (9.4)
3 Booze Design  (9.4)
4 Censor Design  (9.4)
5 Performers  (9.4)
Top Public Relations Managers
1 Irata  (10)
2 Baracuda  (10)
3 hedning  (10)
4 Liesbeth  (10)
5 MacGyver  (2.7)

Home - Disclaimer
Copyright © No Name 2001-2020
Page generated in: 0.042 sec.