gfx9k lib howto?

By lintweaker

Expert (86)

lintweaker's picture

14-08-2018, 20:53

I tried using gfx9k lib (0.70) to (get a head) start programming my V9990. It needs 'sjasm' as assembler.
I can't seem to manage to assemble anything, I only get errors like:

SjASM Z80 Assembler v0.39g1 - <a href="http://www.xl2s.tk" title="www.xl2s.tk">www.xl2s.tk</a>
Pass 1 complete (0 errors)
g9klib.inc line 8: Label not found: G9k.Reset
g9klib.inc line 8: Label not found: G9k.Reset
g9klib.inc line 9: Label not found: G9k.SetScreenMode
g9klib.inc line 9: Label not found: G9k.SetScreenMode

Any hints how to get this lib working?

Login or register to post comments

By Manuel

Ascended (14729)

Manuel's picture

14-08-2018, 21:20

Perhaps it needs a newer sjasm? 0.4 came out in 2008.... at least I have some beta of it.

The xl2s website has sjasm 0.42. Try that?

By lintweaker

Expert (86)

lintweaker's picture

15-08-2018, 16:32

Manuel wrote:

Perhaps it needs a newer sjasm? 0.4 came out in 2008.... at least I have some beta of it.

The xl2s website has sjasm 0.42. Try that?

Newer versions are even worse it seems:

Sjasm Z80 Assembler v0.42c - <a href="http://www.xl2s.tk" title="www.xl2s.tk">www.xl2s.tk</a>
bdos.inc(249) : Syntax error
bdos.inc(254) : Syntax error

bdos.inc(383) : Syntax error
g9klib.inc(8) : Unrecognized instruction: export
g9klib.inc(9) : Unrecognized instruction: export
g9klib.inc(10) : Unrecognized instruction: export
g9klib.inc(11) : Unrecognized instruction: export

Maybe a very specific version is needed?

By msd

Paragon (1359)

msd's picture

15-08-2018, 23:21

Iirc never sjasm version are not compatible with the one I used to make the g9klib. I have to check which version I used .

By assembler

Champion (369)

assembler's picture

15-08-2018, 23:58

sjasm 0.39g6 assembles it fine

By Manuel

Ascended (14729)

Manuel's picture

16-08-2018, 00:02

msd: perhaps you can update the lib to use the latest sjasm?

By msd

Paragon (1359)

msd's picture

16-08-2018, 06:17

@manuel: if it still supports the same things .

By lintweaker

Expert (86)

lintweaker's picture

16-08-2018, 16:37

with sjasm 0.39g6 I can indeed assemble g9bview.asm, but when I create my own file a get the same errors again. Maybe its picky about file formatting?

My MSX profile