Re: [cc65] Bank Switching

Date view Thread view Subject view

From: Christian Groessler (cpg_at_aladdin.de)
Date: 2002-10-09 22:46:20


Hi,

On 10/09/2002 08:16:24 AM ZE2 Daniel Pralle wrote:
>
>SORRY I CAN'T POST TO THE LIST!

Probably it's restricted to list members. You aren't member, are you?

>>In the current atari.cfg linker file, EXEHDR is the first 6 bytes of
>>the executable (0xffff and the addresses for chunk 1) and AUTOSTRT is
>>in fact only a 2nd chunk which "loads" the start address of the
>>program into the relevant system variable.
>>
>>So with some linker and segments fiddling, one should be able to make
>>RAM2 a separate chunk in the file. The AUTOSTRT chunk should be last
>>(unless you know what you do), because I think it's address will be
>>called immediately after being loaded, before the remaining chunks get
>>loaded.
>>
>>
>Wrong!
>The ATOSTART adress will be jumped to AFTER ALL loading is done.
>But the DOS of the ATARI has another nice feature, the INITADR.
>This adress is a vector through which the OS jumps after each vhunk is
>loaded.

Oops, I mixed them. Thanks for pointing it out...

RUNAD (as it's called in the atari.inc file, $2e0) is the one called
after all chunks are loaded.
INITAD ($2e2) is jumped immediately after it's loaded.

regards,
chris

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-10-09 22:47:57 CEST