Sjasm, how does it work (Development MSX Fora)MSX Resource Center            
            
English Nederlands Espa�ol Portugu�s Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 53 gasten en 4 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - Sjasm, how does it work

Ga naar pagina ( 1 | 2 | 3 Volgende pagina )
Schrijver

Sjasm, how does it work

norakomi
msx professional
Berichten: 861
Geplaatst: 19 Juni 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 ??


sjoerd
msx addict
Berichten: 450
Geplaatst: 19 Juni 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
BiFi
msx guru
Berichten: 3142
Geplaatst: 20 Juni 2005, 07:20   
use tniASM instead
sjoerd
msx addict
Berichten: 450
Geplaatst: 20 Juni 2005, 10:31   
Or try them both
ARTRAG
msx master
Berichten: 1737
Geplaatst: 20 Juni 2005, 10:31   
tniASM does not support macros!!

sjasm, in this moment, is the most evolved
BiFi
msx guru
Berichten: 3142
Geplaatst: 20 Juni 2005, 12:23   
sjASM has had always many issues when it comes to... bugs... something tniASM hasn't...
sjoerd
msx addict
Berichten: 450
Geplaatst: 20 Juni 2005, 13:12   
Let's not go there again, OK?
marison
msx lover
Berichten: 98
Geplaatst: 20 Juni 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.
ARTRAG
msx master
Berichten: 1737
Geplaatst: 20 Juni 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)

msd
msx professional
Berichten: 615
Geplaatst: 20 Juni 2005, 13:34   
Quote:

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


Yes ofcourse once a bug always a bug?
BiFi
msx guru
Berichten: 3142
Geplaatst: 20 Juni 2005, 13:35   
I hardly use macros... and I've released many things already coded without macros... just with an non-buggy asm
BiFi
msx guru
Berichten: 3142
Geplaatst: 20 Juni 2005, 13:37   
Quote:

Quote:

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


Yes ofcourse once a bug always a bug?

there's still a huge software company troubling with that 'minor' issue and I doubt they will ever lose that image.
sjoerd
msx addict
Berichten: 450
Geplaatst: 20 Juni 2005, 14:02   
Image is everything
ro
msx guru
Berichten: 2346
Geplaatst: 20 Juni 2005, 16:10   
nope. stick to WB2... it's a complete environment. no need to sub save and assemble just to test and debug. bleeeeeeh. to much time consuming.
Break your code into modules and WB2 will handle it fine. it also save assembly time (no need to re assemble that whole frickin' peace again and again and a....)
sjoerd
msx addict
Berichten: 450
Geplaatst: 20 Juni 2005, 16:30   
Assembly time? Using a cross-compiler and some emulator with debugger is faster than anything on MSX. In my own expierence, of course...

If you think SjASM is slow, there's always SjASMplus which is about 7 times faster
 
Ga naar pagina ( 1 | 2 | 3 Volgende pagina )
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.