in my current project i use a lot of macros and noticed a problem with one of them. for example (shortened version of what i actually use): .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 this macro works as intended, ie the length is correctly calculated and the two values in the byte statement are as expected. now the slightly different one (including a sourcefile instead of a binary) .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 is accepted by the assembler with no error, BUT the two calculated bytes are wrong (both $00). the confusing part is that when i do exactly the same but without using a macro, it works fine - and i see no reason why the macro shouldnt work because of that... having this fixed would be really appriciated, would save me a lot of typing :=) oh and i'm using ca65 v2.11.9 from the (i think) latest snapshot. -- http://www.hitmen-console.org http://www.gc-linux.org/docs/yagcd.html http://www.pokefinder.org http://ftp.pokefinder.org People can be divided into three groups: Those who make things happen, those who watch things happen, and those who wonder what happened. <John W. Newbern> ---------------------------------------------------------------------- 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 03:40:14 2006
This archive was generated by hypermail 2.1.8 : 2006-08-13 03:40:18 CEST