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


Forums > C64 Coding > ML Load routine makes program crashes
2014-06-05 21:24
Lux

Registered: Apr 2011
Posts: 17
ML Load routine makes program crashes

Hi guys,

I'm doing a simple noter. In program, I use simple load routine from codebase64 (Richard Bayliss routine, http://codebase64.org/doku.php?id=base:disk_loader_with_flashin..). I'm loading font files on address $0800. Noter starting at $4000 in memory so there is no overlaping with ML code of noter. Every font file I'am using for loading are saved from $0800 to $1000. Noter working ok (editing, using menus etc.), but after loading font file, main program start to behaves strangely and in some cases crashes (yes!). There is no way that font file overlap ML code, I check it. So my question is .. is there something to do after using load routine (to do kernel cals, to reset something or ..?).
Perhaps some of you have had a similar problem so please help.

Lux :)
2014-06-05 21:28
tlr

Registered: Sep 2003
Posts: 1790
Hard to tell without knowing exactly what you are doing. Could you post some code? Source or binary is ok.
2014-06-05 21:34
chatGPZ

Registered: Dec 2001
Posts: 11386
your program relies on pointers/zeropage locations which are used by the kernal?
2014-06-05 21:40
Lux

Registered: Apr 2011
Posts: 17
This is memory locations:

$0800 - $1000 default font
$1000 - $1300 noter preview
$1300 - $4000 screen data
$4000 -> editor code

Editor started on $4000, and after starting editor, there is MENU with different task.. create page, edit page, del.pag etc.

I'am testing this editor in VICE + kickassembler, but I also have real hardware + 1541U2, for real testing.

I'll upload D64 image with prg+fonts on csdb.
Much appreciate your help. I will soon set up a link.
2014-06-05 21:43
Lux

Registered: Apr 2011
Posts: 17
Zeropage locations I'am using for memory transfers, when I deleting or inserting page.
More using locations in editor memory area or in noter area.
2014-06-05 21:53
Oswald

Registered: Apr 2002
Posts: 5094
you should try loading with this instead, its compatible with kernal friendly load speeders, and only does whats needed in the CORRECT way:

http://codebase64.org/doku.php?id=base:loading_a_file


Richard's routine does a lot of very risky things it shouldnt. (patching run/stop vector, calling shitloads of kernal/basic routines that are NOT needed for a simple load, etc etc)
2014-06-05 21:54
Lux

Registered: Apr 2011
Posts: 17
Guys, this is link:
Simple Writer V0.8
2014-06-05 21:58
Lux

Registered: Apr 2011
Posts: 17
Oswald, thanks for reply. Yes, I also used that simple load routine, same problem happens, very strange. I tested yesterday with almsot 20 font files. Some file loaded ok, but some not. I saved files from same memory location.
2014-06-05 22:02
Oswald

Registered: Apr 2002
Posts: 5094
try to enter monitor while your program is running and simply fill the font memory with various values and see if your code still survives. if doesnt then your code is accidentally relying on a value in font space. if it still works, then possibly you have a zeropage conflict with kernal.

edit: maybe some vice monitor gurus can tell you how to create a breakpoint to see if your code reads into font memory.
2014-06-05 22:12
Lux

Registered: Apr 2011
Posts: 17
Oswald, thanks for the advice, it seems to me that I could use to find the cause.
2014-06-05 22:13
chatGPZ

Registered: Dec 2001
Posts: 11386
> break load 800 fff (or even "load exec")
 
... 5 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - 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
Didi/Laxity
Freeze/Blazon
Darkflight
Guests online: 96
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Original Suppliers
1 Derbyshire Ram  (9.7)
2 Fungus  (9.3)
3 Black Beard  (9.2)
4 Baracuda  (9.2)
5 hedning  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.196 sec.