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
Account closed

Registered: Apr 2011
Posts: 15
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: 1762
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: 11293
your program relies on pointers/zeropage locations which are used by the kernal?
2014-06-05 21:40
Lux
Account closed

Registered: Apr 2011
Posts: 15
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
Account closed

Registered: Apr 2011
Posts: 15
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: 5076
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
Account closed

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

Registered: Apr 2011
Posts: 15
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: 5076
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
Account closed

Registered: Apr 2011
Posts: 15
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: 11293
> 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
kbs/Pht/Lxt
t0m3000/HF^BOOM!^IBX
redcrab/G★P
Mr SQL
Dano/Padua
Bytebreaker/Hokuto F..
encore
jmin/F4CG
chesser
Airwolf/F4CG
Guests online: 110
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Unboxed  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Morph  (9.5)
8 Dawnfall V1.1  (9.5)
9 Onscreen 5k  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Nostalgia  (9.3)
4 Censor Design  (9.3)
5 Performers  (9.3)
Top Diskmag Editors
1 Magic  (9.8)
2 Jazzcat  (9.5)
3 hedning  (9.4)
4 Elwix  (9.1)
5 Remix  (9.1)

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