Sjasm, how does it work

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

By [D-Tail]

Ascended (8247)

[D-Tail]'s picture

22-06-2005, 10:13

Compass has that as well... Once I made some kinda lame ASM program, of which the source was 115kB in the end. Saved it as ASCII file, loaded it again, and saved it again as ASM-file. Result: 100kB difference ^_^

By norakomi

Paragon (1092)

norakomi's picture

23-06-2005, 16:01

Can I make a simple short file that starts at $4000 in sjasm, save it as a bin file,
and load it in W-Bass2??? (I guess the answer is : NO you need dos2 to do this)

If the answer is: NO you need dos2 to do this

How do I load a bin file into memory (at $4000)??

(I have 0 experience working with dos on the MSX)

By sjoerd

Hero (602)

sjoerd's picture

23-06-2005, 16:18

You can create such file with SjASM, but I don't know if you can load it at 4000h with W-Bass2.

But you could load the file at 8000h and move it with LDIR or something.

By Sonic_aka_T

Enlighted (4130)

Sonic_aka_T's picture

23-06-2005, 16:34

You can just DLOAD or BLOAD with WB-ASS2, no problem at all... Just make sure you don't overwrite the assembler itself or the sources you've loaded. Using PAGE will solve that...

By ro

Scribe (4421)

ro's picture

23-06-2005, 21:56

again, (b/d)load in PAGE 2 in the mapper that should be in PAGE 1.

e.g.
page 2,3,3,2 (map 2 in page 2)
dload "filename.ext"#8000 <- in page 2 !!
page 1,3,3,2 (map 2 in page 1)

and you'll have the read datafile in page 1(#4000), map 2.
voila.

By dvik

Prophet (2200)

dvik's picture

23-06-2005, 23:28

A quick question about sjasm. Can it generate files with symbol information? If so I'd be happy if someone could post part of one here. I want to make sure the format is supported in the blueMSX debugger. If someone could reply today it would be great Smile

By ro

Scribe (4421)

ro's picture

24-06-2005, 08:32

well, "TODAY" is a bit short eh... 32 minutes. guess no one had the need to.. whoahaha. sorry. just jokin'. dunno how to tho.

By dvik

Prophet (2200)

dvik's picture

24-06-2005, 09:41

lol, I guess today is quite relative. Where I live it was today until 41 minutes ago. Now it is tomorrow Wink

Symbol information is really handy if you have a debugger that supports it. So far the symbol format of tniASM and asMSX is supported in the blueMSX debugger.

By norakomi

Paragon (1092)

norakomi's picture

24-06-2005, 11:01

again, (b/d)load in PAGE 2 in the mapper that should be in PAGE 1.

e.g.
page 2,3,3,2 (map 2 in page 2)
dload "filename.ext"#8000 <- in page 2 !!
page 1,3,3,2 (map 2 in page 1)

and you'll have the read datafile in page 1(#4000), map 2.
voila.

Beautifull !!!
Is this the translation to assembly(?):

Ld a,2 ;map 2
out ($fe),a ;page 2,x,x,2
call dload
ld a,2
out ($fd),a ;page 1,x,x,2

????????????????????

(so no need to ldir $8000 to $4000??????)

By ro

Scribe (4421)

ro's picture

24-06-2005, 12:33

Ld a,2 ;map 2
out ($fe),a ;page 2,x,x,2
call dload
ld a,2
out ($fd),a ;page 1,x,x,2

jup!

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