Sjasm, how does it work

Page 1/5
| 2 | 3 | 4 | 5

By norakomi

Paladin (992)

norakomi's picture

19-06-2005, 21:48

SJASM !!!

I have looked a bit at SJASM,
since I was forced by WB-ASS2 to use a cross-assembler,
because my game was getting too big....

Question:

Is this the way to use Sjasm:

I type my assembly file in a wordpad, e.g.

ORG $C000

BEGIN:
LD A,50
CALL $A2
RET

i save this file as: "printa.asm"

then I open DOSPROMPT
I go to the SJASM directory (where "PRINTA.ASM" is also saved)

I type: SJASM -l printa.asm
then the files which are made are:
PRINTA.LST and
PRINTA.OUT
and sjasm tells me Errors: 0

but now what??
how and with what do I play these files ??

Login or register to post comments

By sjoerd

Hero (593)

sjoerd's picture

19-06-2005, 22:07

  db 0feh
  dw start
  dw end
  dw start

  org 0c000h

start
  ld a,50
  call 0a2h
  ret
end

Assemble with: sjasm -l printa.asm printa.bin
and you'll get a printa.bin file instead of printa.out

By BiFi

Enlighted (4348)

BiFi's picture

20-06-2005, 07:20

use tniASM instead ;)

By ARTRAG

Enlighted (6244)

ARTRAG's picture

20-06-2005, 10:31

tniASM does not support macros!!

sjasm, in this moment, is the most evolved

By sjoerd

Hero (593)

sjoerd's picture

20-06-2005, 10:31

Or try them both Tongue

By BiFi

Enlighted (4348)

BiFi's picture

20-06-2005, 12:23

sjASM has had always many issues when it comes to... bugs... something tniASM hasn't...

By sjoerd

Hero (593)

sjoerd's picture

20-06-2005, 13:12

Let's not go there again, OK? Smile

By marison

Expert (104)

marison's picture

20-06-2005, 13:21

asMSX seems to be a good alternative too:
http://www.robsy.net/asmsx.htm

It's very adapted to MSX enviroment. Statement to format ROMs, for example.

I use M80 from Microsoft. Macros, long sources (I guess my code is 4000+ lines long now), and various other easy to use characteristics.

By ARTRAG

Enlighted (6244)

ARTRAG's picture

20-06-2005, 13:24

asMSX does not support MACROS
sorry, for me sjASM is still winning

Actually two o three things need sjASM

1) the use of REPT in macros : it would be very useful for automatic loop unrolling
2) A better documentation of the fake instructions (that I find very useful)
3) The output of the timings in Z80 cycles in the .lst files (it would be very useful for deep optimization)

By msd

Paragon (1372)

msd's picture

20-06-2005, 13:34

sjASM has had always many issues when it comes to... bugs... something tniASM hasn't...
Yes ofcourse once a bug always a bug?

By BiFi

Enlighted (4348)

BiFi's picture

20-06-2005, 13:35

I hardly use macros... and I've released many things already coded without macros... just with an non-buggy asm Wink

Page 1/5
| 2 | 3 | 4 | 5