Re: [cc65] Atari: Loading code with DOS 2.0 help? (LONG)

From: Shawn Jefferson <jefferson_shawn_a8bit1yahoo.com>
Date: 2004-08-03 22:32:15
--- Christian Groessler <chris@groessler.org> wrote:

> The contents of the old EXEHDR segment should be
> discarded. Therefore
> they're relocated into the BANK memory area, which
> isn't written to
> the output file.

> 	.import	__CODE_LOAD__, __BSS_LOAD__, __CODE_SIZE__
> 	.import	__DATA_LOAD__, __RODATA_LOAD__
> 
> 	.segment "NEXEHDR"
> 	.word	 $FFFF
> 	.word	 __CODE_LOAD__
> 	.word	 __CODE_LOAD__ + __CODE_SIZE__ - 1
> 
> 	.segment "CHKHDR"
> 	.word	 __RODATA_LOAD__
> 	.word	 __BSS_LOAD__ - 1
> ------------------

Nice!  This gets around the problem of having to move
segments to accommodate standard EXEHDR defined in
crt0.s!  I'll have to remember this for future
projects!

--
Shawn Jefferson



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Aug 3 22:32:19 2004

This archive was generated by hypermail 2.1.8 : 2004-08-03 22:32:28 CEST