Re: [cc65] Emitting data into segments defined in an interleaved way, while maintaining addresses?

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2012-08-24 08:33:46
Hello,

* On Thu, Aug 23, 2012 at 04:38:22PM -0400 David Schmidt wrote:
 
> File1.asm:
> .segment "MESSAGES"
> 	M11: asc "1A"
> 	M11_END =*
> 	M12: asc "1B"
> 	M12_END =*
> .segment "MSGLEN"
> 	.byte M11_END-M11
> 	.byte M12_END-M12
> .segment "MSGTABLE"
> 	.addr M11,M12
> 

Not related to your problem (that has been solved now), but:

You might want to have a look into msbasic.zip
from http://www.pagetable.com/?p=46. Here, the same thing for defining
the BASIC keywords, their tokens and their addresses has been done in a
very elegant way, making the code extremely readable.

You might want to adapt it to your needs.

Regards,
Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Aug 24 08:34:08 2012

This archive was generated by hypermail 2.1.8 : 2012-08-24 08:34:12 CEST