Jump to content
Jagware
Sign in to follow this  
swapd0

New Version Of Jas Avaliable

Recommended Posts

swapd0    0

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 :P

 

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 :lol:

jas.zip

Share this post


Link to post
Share on other sites
GT Turbo    5

I know one people who will like you, because he was born to write macro ;)

 

GT :poulpe:

 

Edit : Nice avatar SwapD0 ;)

Share this post


Link to post
Share on other sites
SebRmv    2

Just one question: does jas produce object files compatible with ALN ?

Share this post


Link to post
Share on other sites
swapd0    0
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

Share this post


Link to post
Share on other sites
SebRmv    2
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

Share this post


Link to post
Share on other sites
swapd0    0
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.

Share this post


Link to post
Share on other sites
SebRmv    2
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 !

Share this post


Link to post
Share on other sites
swapd0    0
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 !

:unsure: well I think than I got old BSD format somewhere (thanks ray) maybe it's time to have a look...

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×