[Fusion-C] Official Q&A thread

By raymond

Hero (631)

Аватар пользователя raymond

29-09-2020, 20:05

I could not find any thread to ask questions about Fusion-C like there is for other topics so I started this one.

I have tried to search for some examples on how to work with files using Fusion-C, as I am trying to write to and read from a text or binary file. I can write data to a file, however when I read it again, it is completely different. Does someone has some examples on how to read/write to text and binary files using Fusion-C?

Для того, чтобы оставить комментарий, необходимо регистрация или !login

By mcolom

Champion (310)

Аватар пользователя mcolom

29-09-2020, 20:30

Works well for me: https://github.com/mcolom/MSX_lstate/blob/master/lstate.c
You need to call FCBs() first when working with files, though.

By ericb59

Paragon (1099)

Аватар пользователя ericb59

30-09-2020, 09:52

HI,

You can use this thread : https://msx.org/forum/msx-talk/development/msx-fusion-c-talk...

anyway, here an example how to use FCB to Create, Write, Read file
(Be aware of this example is for Fusion-C 1.3 which is not available right now. It works also with Fusion-c 1.2. Just rename the FCBs functions with the name they have in v1.2 : fcb_open, fcb_create, fcb_close, fcb_read, fcb_write)

https://drive.google.com/file/d/1EWUfj-tp0_ToaI1ji7AUGn64gvG...

By yustmenl

Rookie (32)

Аватар пользователя yustmenl

02-10-2020, 12:59

ericb59 wrote:

HI,

You can use this thread : https://msx.org/forum/msx-talk/development/msx-fusion-c-talk...

anyway, here an example how to use FCB to Create, Write, Read file
(Be aware of this example is for Fusion-C 1.3 which is not available right now. It works also with Fusion-c 1.2. Just rename the FCBs functions with the name they have in v1.2 : fcb_open, fcb_create, fcb_close, fcb_read, fcb_write)

https://drive.google.com/file/d/1EWUfj-tp0_ToaI1ji7AUGn64gvG3pqKx/view?usp=sharing

thanks it looks like it solved our issue!

By ericb59

Paragon (1099)

Аватар пользователя ericb59

10-11-2020, 09:58

The fusion-c 1.2 was updated with some fix.
Fix : bug and corrupted graphics when using sprites on MSX1 Machines.

https://github.com/ericb59/Fusion-C-v1.2

By Gregory

Master (222)

Аватар пользователя Gregory

01-07-2021, 12:04

ericb59 wrote:

The fusion-c 1.2 was updated with some fix.
Fix : bug and corrupted graphics when using sprites on MSX1 Machines.

https://github.com/ericb59/Fusion-C-v1.2

Do you have a releas date for version 1.3?

By Gregory

Master (222)

Аватар пользователя Gregory

11-12-2021, 07:50

Gregory wrote:
ericb59 wrote:

The fusion-c 1.2 was updated with some fix.
Fix : bug and corrupted graphics when using sprites on MSX1 Machines.

https://github.com/ericb59/Fusion-C-v1.2

Do you have a releas date for version 1.3?

Bump