C set seems incomplete

Página 1/3
| 2 | 3

Por Roland007

Expert (85)

imagem de Roland007

19-02-2018, 20:00

Hi All,

I've tried to set-up the MSX-C 1.2 environment, installed all files but when I try some source code from the ascii c library book, I hit a hard error. I am missing the real MSX libraries because the sample assumes that msxalib.h and msxclib.h exists but on all my disks: they do not exist.

Is there someone that can tell me where age msxalib.h file is supposed to come from?
Thanks

Entrar ou registrar-se para comentar

Por Roland007

Expert (85)

imagem de Roland007

19-02-2018, 20:38

ok, this site describes how they should be made
https://github.com/sndpl/msx-c-intro

So question answered :)

Por Jin

Resident (37)

imagem de Jin

21-05-2018, 08:14

Hello Everyone, i have downloaded these C libraries from Github, but when i open the files in the notepad or AKID these files came with weird ^J <-- symbols between the C commands.

So i deleted all these ^J and followed all instructions:

Right after following the instructions i have compiled 2 examples:

line.c and putspr.c, but theyre not working.

the example:
line.com just turn all the characters into green characters and redefine them ramdomly

and putspr.com just clean the screen like a cls command.

Does anyone got working files of these msx-c-intro?

I am using Open MSX emulating Turbo-R GT with Ide interface.

The stdio.h is working fine, but these graphics library not...

Por MicroTech

Champion (386)

imagem de MicroTech

21-05-2018, 10:24

Check here if you can find helpful hints.

Por Jin

Resident (37)

imagem de Jin

21-05-2018, 22:50

Thanks for reply Microtech. Im following the instructions, but I dont know what i am doing wrong, still the graphics library is not working to me XD

Does someone got working MSXALIB.REL and MSXCLIB.REL files?

Por MicroTech

Champion (386)

imagem de MicroTech

22-05-2018, 11:02

Hi Jin, I never tried to rebuild MSX-C libraries, if this is your issue.

In msxC-Lib disk you can find GLIB and MLIB, both sources and (ready to link) .REL files.
Try adding GLIB/S and MLIB/S in your link command (or script file).
I presume a good place could be before:
CRUN/S
CEND
You must call ginit() before using any graphic-related function and set screen mode calling screen() (included in MLIB).
Hope this helps.

Por Jin

Resident (37)

imagem de Jin

22-05-2018, 22:45

Hello Microtech, thanks for reply

The Glib is working well now Big smile Now im looking for some examples

to learn how to draw and show sprites. Big smile

Por Sylvester

Champion (399)

imagem de Sylvester

23-05-2018, 18:54

@jin as far as I know all examples in my repository work, will check this weekend Smile Also have a look at https://github.com/sndpl/msx-c-intro/blob/master/games/mole/... for some sprite examples. But if you compile them don't use FPC.COM, because it will give a lot of warnings.

Por Jin

Resident (37)

imagem de Jin

23-05-2018, 19:37

Hello silvester. When o try to use amake or cmake this happens:

https://www.youtube.com/watch?v=x9oX3ZcWcl4&feature=youtu.be

Por Wolverine_nl

Paragon (1046)

imagem de Wolverine_nl

23-05-2018, 19:50

it looks like the returns are not correct, it shows the ^ and makes it one long line, which can never exceed a certain amount of characters.

Por Jin

Resident (37)

imagem de Jin

23-05-2018, 20:04

I had to delete all those "^J" sequences, but the errors persists

(im gonna make another video deleting these weird "^J", making files and compiling.)

Página 1/3
| 2 | 3