Loac SC5 screen in Pascal

Página 1/2
| 2

Por Francisco Gálvez

Resident (33)

Imagen del Francisco Gálvez

27-05-2018, 11:53

Hi... everybody
I've programming in Basic long time and it's time to try Pascal.
My problem is loading SC5 screens. There is a library:
LoadGraphic('fondo.sc5', 256, 212, 0,0,0,0,5);

But when it's loaded it does not fit. It appears pushed/rotated to the right a lot of pixels
original sc5 in basic (>-------)
loaded in pascal ( --->-----)

I don't find any program to create GFX images, but in any case... SC5 is good for me. I don't like use customised palettes. Default palette is good for me.
is it possible to load a sc5 in pascal? I've aksing friends and told me to remove header or the file, so i used an hexadecimal editor but the firsts bytes are already zeros.

Anu help wolud be apreciated... thakns in advantage

Login sesión o register para postear comentarios

Por enribar

Paladin (1007)

Imagen del enribar

27-05-2018, 12:01

Yes you can! Follow the instructions written by Slotman of Icongames team, released on the official website.
Alt. solution: paint images with your PC graphic editor and then convert them in SC5 with BMP2MSX.
You should load SC5 images with LoadGraphic and remember also to load the Palette, if it's separated from the SC5.

Por SLotman

Paragon (1215)

Imagen del SLotman

27-05-2018, 17:56

Remove the first 7 bytes of the SC5 image (the header) and you can load it on Pascal.

BTW: If someone wants to use MSXPad on 64 bits, I've made a small attempt to get it going using DOSBox. Just extract those files over the ones installed and it should work. Didn't release it yet because it isn't tested enough...

Por wimpie3

Champion (266)

Imagen del wimpie3

27-05-2018, 18:10

Is the Pascal code compiled to machine code? I'd like to look at some examples but a lot of sites and pages seem to have disappeared from the internet. Is there a quick start guide somewhere?

Por SLotman

Paragon (1215)

Imagen del SLotman

27-05-2018, 18:42

wimpie3 wrote:

Is the Pascal code compiled to machine code?

Yes, it is - you can even add some 'inline' assembly (using opcodes) anywhere you want Smile

wimpie3 wrote:

Is there a quick start guide somewhere?

http://www.icongames.com.br/msxfiles/util-en.htm - there is a tutorial on how to use MSXPad :)

Also, here: http://msx.hansotten.com/software/pascal-and-msx/

Por Manuel

Ascended (15832)

Imagen del Manuel

27-05-2018, 20:42

i used LoadGraphicBlock from Kari Lammassaari's library and that expects files create by the COPY command in BASIC.

Por enribar

Paladin (1007)

Imagen del enribar

28-05-2018, 16:09

MSX Pad is today the only one most compmete and powerful alternative to MSX-Basic.
I have programmed tens of prototypes and experiments with this tool!
Very good work Slotman!
My hope is to see MSX Pad C language version.
I use MSX Pad on a Windows XP virtual machine under VMware (Player).

Por wimpie3

Champion (266)

Imagen del wimpie3

28-05-2018, 16:28

The only problem I see is that Pascal compiles to COM files, meaning a ROM can never be made.

Por enribar

Paladin (1007)

Imagen del enribar

28-05-2018, 17:02

Why not? Put all files into a DSK and then convert to ROM with DSK2ROM.
You can also do this with a RAM-Disk with DOS2 and then convert to ROM with another utility by Konamiman.

Por wimpie3

Champion (266)

Imagen del wimpie3

28-05-2018, 20:30

enribar wrote:

Why not? Put all files into a DSK and then convert to ROM with DSK2ROM.
You can also do this with a RAM-Disk with DOS2 and then convert to ROM with another utility by Konamiman.

Wouldn't this mean you'll have to burn MSX-DOS into the rom as well?

Por Francisco Gálvez

Resident (33)

Imagen del Francisco Gálvez

28-05-2018, 20:44

Thanks everybody ... all answers were helpfull...
Special thanks slotman "Remove the first 7 bytes of the SC5 image (the header) and you can load it on Pascal."
It worked and it's great... development in Pascal looks promising to me...
Thanks everybody again.

Página 1/2
| 2