MSX FUSION-C, Talking about bugs, errors, mistakes

Page 24/24
17 | 18 | 19 | 20 | 21 | 22 | 23 |

By Wolverine_nl

Paragon (1149)

Wolverine_nl's picture

12-02-2021, 11:48

Hi Eric,
Do you have a prognoses when version 1.3 wil be released? Smile

By ericb59

Paragon (1046)

ericb59's picture

12-02-2021, 17:57

@Wolverine_nl
My problem is I want to include to much things... So I decided to publish a RC within 3 weeks.

By Bengalack

Champion (384)

Bengalack's picture

13-02-2021, 08:33

ericb59 wrote:

@bengalack
http://msx.ebsoft.fr/fusion-c/_build_lib.bat
Let me know if it works now ...

Thank you Eric! I think this fixes things in Fusion-C. Now the printf-example works like a charm.

But then again, my game does not work correctly :-( This is likely because SDCC is not in a ready state, and has some new bugs introduced, which my some of my recent code stumbles into. I say recent, as I have been using 4.0.7 on parts of my program (which was not dependent on printf) for testing purposes earlier, and this worked fine.

But! This means that I can grab a snapshot now and then, and see if things are fixed, or I can even investigate 4.0.7 and file bugs to SDCC, to get them fixed.

BTW: Maybe you could add some kind of IFDEF SDCC_VERSION >=4_0_3 in the printf.c file, so that Fusion-C can be compiled with upcoming releases of SDCC? Not sure if possible, just and idea.

Anyways, thanks for looking into this :)

By yustmenl

Rookie (28)

yustmenl's picture

10-03-2021, 20:06

Hi Guys it's me again.

I am trying to convert a PNG to a sprite with sprconv

and i get the data out of it(a log file and a SPR file)

currently i am focussing on using the log file data but i can't see how to interpret the data especialy the color palet.
can anyone help us on how to use the data that comes out of the tool for use in Fusion C?
the data we get out of the tool is:

; Sprite   : 0
; Mode     : Mode : 2 sprites, color OR on 
; TGS size : 64
; Address  : Start + #0
sprite0tgs:
    db %00000001
    db %00000010
    db %00000101
    db %00001011
    db %00010011
    db %00100111
    db %00100111
    db %01001111
    db %01001111
    db %01001111
    db %01001111
    db %01001111
    db %00100111
    db %00010001
    db %00001111
    db %00000000
    db %01000000
    db %11000000
    db %10100000
    db %11010000
    db %11101000
    db %11110100
    db %11111100
    db %11111010
    db %11111010
    db %11111010
    db %11111010
    db %11111010
    db %11110100
    db %11101000
    db %11110000
    db %00000000
    db %00000000
    db %00000001
    db %00000011
    db %00000111
    db %00001111
    db %00011111
    db %00011111
    db %00111111
    db %00111111
    db %00111111
    db %00111111
    db %00111111
    db %00011111
    db %00001111
    db %00000000
    db %00000000
    db %10000000
    db %10000000
    db %11000000
    db %11100000
    db %11110000
    db %11111000
    db %11111000
    db %10101100
    db %10101100
    db %10101100
    db %11111100
    db %11111100
    db %11111000
    db %11110000
    db %00000000
    db %00000000

; Sprite   : 0
; TCS size : 32
; Address  : Start + #64
sprite0tcs:
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #07
    db #00
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #4E
    db #40
    db #40

; Color Palette
; Address  : Start + 96
pal:
    db #04,#00
    db #70,#00
    db #05,#00
    db #03,#00
    db #47,#04
    db #37,#03
    db #17,#02
    db #00,#00
    db #00,#06
    db #00,#03
    db #01,#04
    db #00,#05
    db #54,#04
    db #61,#06
    db #44,#04
    db #77,#07

Thanks for the help again!

By aoineko

Master (154)

aoineko's picture

11-03-2021, 00:19

I'm not a Fusion-C specialist, but you have to send those data to the right place in VRAM (with a VRAM write function).
- sprite0tgs to the address of the Sprite pattern table
- sprite0tcs to the address of the Sprite attribute table - 200h (Sprite color table don't have its own address)

The color palette data (pal) must be send through VDP register #16 (cf. documentation).

By Wolverine_nl

Paragon (1149)

Wolverine_nl's picture

30-04-2021, 11:57

I cannot reach reprofactory.com, it is offline.

Is all well ?

By Grauw

Ascended (9824)

Grauw's picture

30-04-2021, 12:34

At least https://www.ebsoft.fr/shop/ is working.

Page 24/24
17 | 18 | 19 | 20 | 21 | 22 | 23 |