Sjasm, how does it work

Página 1/5
| 2 | 3 | 4 | 5

Por norakomi

Paragon (1125)

Imagen del norakomi

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 sesión o register para postear comentarios

Por sjoerd

Hero (602)

Imagen del sjoerd

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

Por BiFi

Enlighted (4348)

Imagen del BiFi

20-06-2005, 07:20

use tniASM instead ;)

Por ARTRAG

Enlighted (6846)

Imagen del ARTRAG

20-06-2005, 10:31

tniASM does not support macros!!

sjasm, in this moment, is the most evolved

Por sjoerd

Hero (602)

Imagen del sjoerd

20-06-2005, 10:31

Or try them both Tongue

Por BiFi

Enlighted (4348)

Imagen del BiFi

20-06-2005, 12:23

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

Por sjoerd

Hero (602)

Imagen del sjoerd

20-06-2005, 13:12

Let's not go there again, OK? Smile

Por marison

Expert (104)

Imagen del marison

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.

Por ARTRAG

Enlighted (6846)

Imagen del ARTRAG

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)

Por msd

Paragon (1472)

Imagen del msd

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?

Por BiFi

Enlighted (4348)

Imagen del BiFi

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

Página 1/5
| 2 | 3 | 4 | 5