Jump to content

New Version Of Jas Avaliable


swapd0

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...
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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 !

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji 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.

×
×
  • Create New...