| |
JackAsser
Registered: Jun 2002 Posts: 1989 |
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.... |
| |
oziphantom
Registered: Oct 2014 Posts: 478 |
have you made an intentional or unintentional modifications to dd02/3 |
| |
Rastah Bar
Registered: Oct 2012 Posts: 336 |
Intentional no, unintentional unlikely. |
| |
tlr
Registered: Sep 2003 Posts: 1714 |
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? |
| |
Rastah Bar
Registered: Oct 2012 Posts: 336 |
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. |
| |
tlr
Registered: Sep 2003 Posts: 1714 |
Well, then it was a red herring... |
| |
Rastah Bar
Registered: Oct 2012 Posts: 336 |
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. |
| |
Krill
Registered: Apr 2002 Posts: 2839 |
Care to explain what exactly the bug was? Could help others to prevent a similar error. =) |
| |
Rastah Bar
Registered: Oct 2012 Posts: 336 |
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. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11108 |
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). |
| |
Rastah Bar
Registered: Oct 2012 Posts: 336 |
Thanks for the hint. MSGFLG ($9D) was the culprit. Fast loading in micro64 sets this to Direct Mode. |
Previous - 1 | 2 | 3 | 4 - Next |