LOAD start/end address and bank of program

Started by MIRKOSOFT, April 27, 2010, 08:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

Hi!

I have simple Q:

How to detect if I loaded program with DLOAD/BLOAD/LOAD:
- start address of program
- end address of program
- bank to which is program loaded
????

Very very thanks for every help.

Miro.
MIRKOSOFT of megabytes

Commodore 64 was great, Commodore 128 is bigger, better, faster and more!!!

http://www.mirkosoft.sk

Hydrophilic

Excellent question!

The end address +1 will ALWAYS be available at $AE/AF. 

The start address will be available at $AC/AD if using a fast-serial device (1571/1581/etc.) OR if any device with new ROMs.  You see... the original ROMs have a bug and will not record start address if using slow device like cassette or 1541.  The updated ROMs fix this problem.

(Actually, I have not tried cassette with old or new ROMs... so I could be wrong about them... but I am sure about disk files with old and new ROMs!)

Address $c6 will contain BANK# (0 to 15).

I hope this helps!
I'm kupo for kupo nuts!