Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user ibux ! (Registered 2020-09-25) You are not logged in 
CSDb User Forums


Forums > C64 Coding > Relying on $ae/$af after load
2019-05-07 20:14
cadaver

Registered: Feb 2002
Posts: 1136
Relying on $ae/$af after load

Another slightly odd question .. are you aware of modified C64 Kernals or filebrowser programs that *don't* have the ZP location $ae/$af point to the load end address after load?

Practically, the usual method is to use it as a load pointer and increment after each received byte.

If there are any, would be interesting to know which.
2019-05-08 09:23
ChristopherJam

Registered: Aug 2004
Posts: 1078
Possibly tangential, but I had to add an option to nucrunch for setting 2d/2e after decrunch, as something was relying on those being set to load end address.
2019-05-08 11:43
tlr

Registered: Sep 2003
Posts: 1391
The original DTV2/DTV3 kernal sets $ae/$af correctly when loading from flash, but X/Y is incorrect.
2019-05-08 12:17
cadaver

Registered: Feb 2002
Posts: 1136
Quote: Possibly tangential, but I had to add an option to nucrunch for setting 2d/2e after decrunch, as something was relying on those being set to load end address.

I was more used to checking $2d/$2e after a load too. But think that's not set unless it's the actual Basic LOAD command getting called, and for example the SD2IEC filebrowser didn't go that route (but still sets $ae/$af as a byproduct of using the Kernal LOAD)
2019-05-08 13:13
tlr

Registered: Sep 2003
Posts: 1391
A lot of older packers rely on $2d/$2e being set up correctly when being run so if a loader does not set them up there will be compatibility problems. Relying on $ae/$af in the same manner isn't as common from what I have seen.
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
Twilight/ExCeSs
Matt
Raffox/Hokuto Force
Dymo/G★P
grass/LETHARGY
The Sarge/Fairlight
Shine
Hawk
Visage/Lethargy
Sh0ckTr00per/Hokuto ..
Trash
Dex-D/Airsomjith Class
daimansion
Mason/Unicess
polluks
Guests online: 121
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.6)
3 Coma Light 13  (9.6)
4 Memento Mori  (9.6)
5 Comaland 100%  (9.6)
6 The Shores of Reflec..  (9.6)
7 Unboxed  (9.6)
8 Lunatico  (9.6)
9 Remains  (9.5)
10 C=Bit 18  (9.5)
Top onefile Demos
1 Dawnfall V1.1  (9.5)
2 Gumbo Revised  (9.5)
3 Smile to the Sky  (9.5)
4 Daah, Those Acid Pil..  (9.5)
5 Bad Boy  (9.5)
6 Crystal Gazer  (9.5)
7 Cuarentenauta  (9.5)
8 Instinct  (9.5)
9 The Tuneful Eight [u..  (9.5)
10 The Night It Snowed  (9.5)
Top Groups
1 PriorArt  (9.4)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Fossil  (9.4)
5 Performers  (9.3)
Top Crackers
1 Mr. Z  (10)
2 S!R  (9.9)
3 Mr Zero Page  (9.8)
4 Mitch  (9.8)
5 1103  (9.8)

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