Re: [cc65] Hypothetical

Date view Thread view Subject view

From: Gary (gary_at_sybersoft.lv)
Date: 2002-02-01 21:14:12


Here's the actual linker script for NES.

MEMORY {
	ROMHDR:	start = $0, size = 16, file = "romhdr.bin" ;
	ZP:	start = $0000, size = $0100;
	RAM:	start = $0200, size = $0400, define = yes;
	STACK:  start = $0600, size = $0200, define = yes;
	BANK:	start = $8000, size = $4000, file = "bank.bin", fill = yes, fillval = $FF ;
	HOME:	start = $C000, size = $4000, file = "home.bin", fill = yes, fillval = $FF ;
	CHR:	start = $0000, size = $2000, file = "chr.bin",  fill = yes, fillval = $FF ;
}

SEGMENTS {
	ZEROPAGE: load = ZP, type = bss, define = yes ;
	CODE:	load = HOME, type = ro ;
	RODATA:	load = BANK, type = ro ;
	DATA:	load = HOME, run = RAM,  type = rw, define = yes ;
	BSS:	load = RAM, type = bss, define = yes ;
	VECTORS:load = HOME, type = ro, start = $FFFA ;
	ROMHDR:	load = ROMHDR, type = ro ;
	CHR:	load = CHR, type = ro ;
}

SYMBOLS {
	__STACKSIZE__ = $0200 ;
}

FEATURES {
	CONDES: segment = RODATA,
		type = constructor,
		label = __CONSTRUCTOR_TABLE__,
		count = __CONSTRUCTOR_COUNT__;
	CONDES: segment = RODATA,
		type = destructor,
		label = __DESTRUCTOR_TABLE__,
		count = __DESTRUCTOR_COUNT__;
}


Regards,

Gary
----------------------------------------------------------------------
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-02-01 21:14:18 CET