Sjasm, how does it work

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

By BiFi

Enlighted (4348)

BiFi's picture

20-06-2005, 13:37

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.

By sjoerd

Hero (602)

sjoerd's picture

20-06-2005, 14:02

Image is everything Tongue

By ro

Scribe (4420)

ro's picture

20-06-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....)

By sjoerd

Hero (602)

sjoerd's picture

20-06-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 Smile

By ARTRAG

Enlighted (6506)

ARTRAG's picture

20-06-2005, 16:33

My God!! This is a true religion war!
I quit,
bye bye

PS
Religion obnubilates minds!

By ro

Scribe (4420)

ro's picture

20-06-2005, 17:24

including debuging and such? I mean having a whole project loaded in mem and just working on one part of the project to test, debug and what not. is that even possible using cross-developing? (without "loading" the new assembled piece again)
I very doubt it, but hey I haven't done the whole cross-development so I might be utterly wrong ofcourse. still, I'm with my good 'ol WB2 env. (yup, u might call me nostalgic or an old dog but hell I like it.

atleast I ain't the one having problems with to large sources Smile
(and you don't wanna know the size of some projects gheh)

By norakomi

Paragon (1092)

norakomi's picture

21-06-2005, 10:41

  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
O.k. but how do I play this .bin file....
I make this .bin file in Sjasm, in dos (in Windows),
But then do I need to put this .bin file on a .dsk image and run this file in an msx emulator?

Or do I make this .bin file in msx (using dos)????

And what if I need lets say 3 files to be loaded into RAM before I can play my game?

By sjoerd

Hero (602)

sjoerd's picture

21-06-2005, 10:48

But then do I need to put this .bin file on a .dsk image and run this file in an msx emulator?Yes, that's possible. You could also copy it to disk and use it on a real msx.
And what if I need lets say 3 files to be loaded into RAM before I can play my game?You can load these files from basic or ml or whatever you like. Same as you're doing now, I guess.

By BiFi

Enlighted (4348)

BiFi's picture

21-06-2005, 12:22

what does that -l switch do anyway?

By ro

Scribe (4420)

ro's picture

22-06-2005, 09:43

another hint: "how to regain source space in WB2"

save your source with:
>SAVE/A "filename.asc"

then reload it
>LOAD "filename.asc"

and save as .asm file as u used 2.

What up? WBASS2 is intelligent/stupid enough to save ALL used labels. Even de deleted or altered ones. When altering a label name, a new label is created. So you'll end up with this pile of labels if you're to not carefull. Each label take 8 bytes of memory. not that much, but enough to consume precious source space.

you can (this is of my head after all those years!) use the command
>LAB/C

to check empty labels....

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