swapd0 0 Report post Posted October 24, 2006 Hi everybody, i've fixed the macro bug, and now you can write things like this: foo .macro size movei #$10000+\size,r0 ... foo .endm ... foo 256 ... argh! crap code Now macros works like in most assemblers (syntax replace), remember to put '\' before a macro parameter, and that labels into a macro must be declared as local. I hope that this is the last time that I fix it jas.zip Quote Share this post Link to post Share on other sites
GT Turbo 5 Report post Posted October 24, 2006 I know one people who will like you, because he was born to write macro GT Edit : Nice avatar SwapD0 Quote Share this post Link to post Share on other sites
swapd0 0 Report post Posted October 24, 2006 Edit : Nice avatar SwapD0 From the good old days I had to edit the post, because I forgot to attach the file, anyway you can download from my webpage Quote Share this post Link to post Share on other sites
SebRmv 2 Report post Posted October 27, 2006 Just one question: does jas produce object files compatible with ALN ? Quote Share this post Link to post Share on other sites
swapd0 0 Report post Posted November 7, 2006 Just one question: does jas produce object files compatible with ALN ? Sorry for being a bit late... For now, jas uses my own object file format, I've some docs about COFF?? or ALN?? object file format, but it's more complex. Now i'm a bit lazy but, I wanna code a linker to use with jas objects files to include a object file into a source file use .link directive like this -- main.s -- ... bsr xx ... op .link "op.o" // object processor routines ... -- this is in op.s -- .public xx // to export xx symbol .public yy Quote Share this post Link to post Share on other sites
SebRmv 2 Report post Posted November 9, 2006 Sorry for being a bit late... For now, jas uses my own object file format, I've some docs about COFF?? or ALN?? object file format, but it's more complex. it would be really nice if your assembler could produce object files in the old BSD format (a.out) so that they can be linked with ALN Quote Share this post Link to post Share on other sites
swapd0 0 Report post Posted November 9, 2006 it would be really nice if your assembler could produce object files in the old BSD format (a.out) so that they can be linked with ALN Yes but, if I code the linker you won't need ALN any more. Actually I have a linker into jas so I need to take it out. Quote Share this post Link to post Share on other sites
SebRmv 2 Report post Posted November 9, 2006 Yes but, if I code the linker you won't need ALN any more. Actually I have a linker into jas so I need to take it out. maybe not ok, let me discover a bit myself: I use ALN to link assembler files with C files (cross gcc generated, only 68k) so, if your linker is able to do this, perfect ! Quote Share this post Link to post Share on other sites
swapd0 0 Report post Posted November 9, 2006 maybe not ok, let me discover a bit myself: I use ALN to link assembler files with C files (cross gcc generated, only 68k) so, if your linker is able to do this, perfect ! well I think than I got old BSD format somewhere (thanks ray) maybe it's time to have a look... Quote Share this post Link to post Share on other sites