Re: [cc65] ca65 bug

From: 42Bastian Schick <bastian421monlynx.de>
Date: 2006-08-13 13:06:38
Groepaz

> .macro FSECTION_ABSOLUTE_PRG	addr,name
> 	.scope 
> 	[...]
> 	.byte	((data_end-data_start)&255)	; len lsb
> 	.byte	((data_end-data_start)+255)/256	; len msb - num pages
> 	[...]
> data_start:
> 	.incbin name,2
> data_end:
> 	.endscope
> .endmacro

Did you try so surround the incbin with the org/reloc as the _ASM macro?
It should not disturb the incbin but maybe the org/reloc is the problem.

> .macro FSECTION_ABSOLUTE_ASM	addr,name
> 	.scope 
> 	[...]
> 	.byte	((data_end-data_start)&255)	; len lsb
> 	.byte	((data_end-data_start)+255)/256	; len msb - num pages
> 	[...]
> data_start:
> 	.org addr
> 	.include name
> 	.reloc
> data_end:
> 	.endscope
> .endmacro

Try moving data_start/end into the org/reloc pair, maybe the size is
calculated correct then (as workaround).

-- 
42Bastian
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 13 13:07:04 2006

This archive was generated by hypermail 2.1.8 : 2006-08-13 13:07:07 CEST