Loading SC5 files using MSX-C

By tsmvp

Rookie (17)

tsmvp's picture

28-05-2018, 17:49

Gents,

I saw the post using Pascal. Not that I do not like Pascal. Love it and was actually the language I was using back in the days on my old MSX1 from Gradiente (Brazilian). Fast forward 30 years and I have a nice Sony MSX2 and of course OpenMSX running, where I am playing with MSX-C 1.2. So far, so good.
What I cannot find anywhere on the graphics library is a way to load a screen file to the VDP, like it is available with the Pascal libraries. I did find some assembler code that I do believe would work just fine (as thanks to Javi with his relearning MSX, I do know how to use that code from the C program) but before I go down that route, is there something native to the MSX-C libraries to do this?

For now all I want to build is a simple app that will load a background image (by the way, which application do I use to create such SC5 files? LOL) and when certain keys are pressed, certain 'lights' on the background image would light up green or red (to show 'ON' and 'OFF'). It is really a dashboard with these lights so my 6-year old can see it in action and play with it.

Any hints/directions are greatly appreciated.

Cheers.

CR

Login or register to post comments

By Sylvester

Champion (387)

Sylvester's picture

28-05-2018, 18:40

By tsmvp

Rookie (17)

tsmvp's picture

28-05-2018, 22:22

Very cool. Exactly what I need. Now the question is, which apps do you guys use to create the screens? I mean a graphic editor.

Cheers.

CR

By Grauw

Enlighted (7891)

Grauw's picture

28-05-2018, 22:45

MSX: DD-Graph AGE5
PC: Aseprite + conversion script (MIFui and BMP2MSX also seem popular)

I generally do my graphics editing on the PC (Mac). Screen 5 has a 16 colour palette out of 512 colours, so in the PC editor use an indexed colour mode with 16 palette colours, and use these colour values for red, green and blue:

grauw wrote:

V9938 3-bit: 0, 43, 82, 118, 153, 188, 222, 255

Also check out the (kinda long but fun) Creating pixel art thread!

By tsmvp

Rookie (17)

tsmvp's picture

28-05-2018, 23:10

Grauw wrote:

MSX: DD-Graph AGE5
PC: Aseprite + conversion script (MIFui and BMP2MSX also seem popular)

I generally do my graphics editing on the PC (Mac). Screen 5 has a 16 colour palette out of 512 colours, so in the PC editor use an indexed colour mode with 16 palette colours, and use these colour values for red, green and blue:

grauw wrote:

V9938 3-bit: 0, 43, 82, 118, 153, 188, 222, 255

Also check out the (kinda long but fun) Creating pixel art thread!

Thanks a lot! As this is really a simple thing I will probably create something on the PC and then convert to screen 7 using the tools (or 5, it really does not matter). I am sure my son will love the final result.

CR

By Wolverine_nl

Paladin (1005)

Wolverine_nl's picture

29-05-2018, 09:35

Good link! I did do something similar, tiny differences. https://www.msx.org/forum/msx-talk/development/reading-sc5-f...
If you search on MSX-C then you get allot of these older threads, very handy.

My MSX profile