Hi, > http://www.cc65.org/doc/ca65-7.html#ss7.6 > thank you for the quick answer. It works. It was a typical 'I was looking in the reference manual (.SCOPE, .PROC, .EXPORT etc.) problem , while I should examine the user manual'. Is there a way to make a forward declaration so that I can refer to a scope which follows? > Self modifying code *is* dangerous and ugly, so it's a good thing that it > looks like that. You may be able to achieve what you want with some macros, > but I'm not sure about that. > > Yes, it is dangerous and that is the reason I like to have a more distinguishable syntax / symbols. ATM I just rely on my 'SMC_' labels, which requires some discipline. If the assembler would provide some support, sources of error could be reduced: * the change position is clear, a addressing error like SMC_Value = *-1 or SMC_Value = *-2 could not happen * use would be easier and less error-prone with something like SMC_Opcode, SMC_Byte, SMC_Word * code is better understandable and SMC use is pointed out / clear * additional logic could check if SM-Code ( ;-) ) is used in read-only segments, which forces an error Regards Christian BTW: Any news regarding the CMI08 assembly? ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sat Jan 30 14:01:53 2010
This archive was generated by hypermail 2.1.8 : 2010-01-30 14:01:55 CET