SjASM

Door Unregistered user

Ambassador (0)

afbeelding van Unregistered user

30-12-2008, 22:51

Just a minor question about SjASM...

I have a main file, which has no MODULE definition. In this file, I define the label LABEL1.
The main file includes another source file with MODULE name SOMETHING. In this module, I do things like LD (LABEL1), A and it works, by accessing to the label in the main file. Is that a correct way to work?

And... what if I define LABEL1 inside the module? Do SOMETHING.LABEL1 has prioriry over LABEL1?

By the way... has somebody any idea regarding my pletter question?

Thanks!

Aangemeld of registreer om reacties te plaatsen

Van anonymous

incognito ergo sum (116)

afbeelding van anonymous

30-12-2008, 23:23

I think I've found the problem with pletter... the pletter source code uses ENDMACRO, which is not valid in SjASM 0.39g6. So... is the 0.4 version the "official" one, although it is said to be a beta?

Van Manuel

Ascended (17877)

afbeelding van Manuel

31-12-2008, 00:25

Better use it, it seems Smile

Van anonymous

incognito ergo sum (116)

afbeelding van anonymous

31-12-2008, 05:36

Thxs, Manuel, I will Cool

Anyway... what about the label priorities? Is it correct to use a label declared outside any module directly inside a module? Or should I use @? (I hope not, this will be ugly) In case of conflict, module labels have priority?

Van Huey

Prophet (2672)

afbeelding van Huey

31-12-2008, 09:45

@MrSpock: Are you preparing another great MSXdev suprise?

Van anonymous

incognito ergo sum (116)

afbeelding van anonymous

31-12-2008, 10:42

@Huey: No... I've been very busy this year and won't submit anything to MSXDev. Crying
I had some code for my new project, but I didn't like it at all (I mean the code, the game concept is OK), so I decided to start from scratch. I hope the game will be ready for MSXDev'09.

Van Huey

Prophet (2672)

afbeelding van Huey

31-12-2008, 12:06

Ah. Ok. Good luck anyway Wink

Van sjoerd

Hero (602)

afbeelding van sjoerd

31-12-2008, 12:08

Hmm. Sorry about pletter... I make sure sjasm 4 beta also recognises ENDM, because of pletter and then I still use ENDMACRO Tongue

Anyway, you could replace endmacro with endm, or use sjasm 4 beta.

I'd say: use Sjasm 4 beta.

Is it correct to use a label declared outside any module directly inside a module?

Yes.

Or should I use @? (I hope not, this will be ugly)

No, only when you declare a label inside the module with the same name.

In case of conflict, module labels have priority?

Yes. So, if you want to use the label declared outside the module, you could use @ in those cases.

Van anonymous

incognito ergo sum (116)

afbeelding van anonymous

31-12-2008, 13:28


I'd say: use Sjasm 4 beta.

I'm just starting with Sjasm, so I have no problems in using one version or another. I decided not to download v0.4 because of the "beta" statement. But if your recommendation is Sjasm 0.4, I will use it Tongue

Regarding que label questions, thanks! I wanted to be sure from the beginning and avoid having problems too late.