That would be great to have it!! Ar you also considering a new version of the book? for version 1.3?
Absolutly.
I 'm trying to make a better book, with more infirmations.
Also I rewrote the compilation script for something more strong.
I Hope to finish all that work soon ! II no longer indicate a date... It's too much stress
That would be great, gues that means i have to order one
hopefully it wil be here soon, but no stress it's still a hobby project!!
In Turbo Pascal you can use chain to "glue" various parts together. Is there a similar function available in Fusion-C? As I used the chain method a lot in TP.
After reading about it, I don't think SDCC has such similar feature, you would have to generate fully featured programs and find a way (command line parameters? file on disk?) to exchange data between the parts. Perhaps the work that some people did to support rom mappers on SDCC could achieve a similar effect somehow if changing the mapper switching routines to routines to load from disk... But then there would be a lot of work to be done to adapt the idea. Seems like a really cool feature, wish someone come here and says that is somehow supported
It seems there is no "chain" method in C.
But indeed, it would be a great feature to add to Fusion-C !
It seems there is no "chain" method in C.
But indeed, it would be a great feature to add to Fusion-C !
Something for Fusion-C 1.4?
@raymond
I'm afraid I'm not smart enough to add this feature on my own.
@raymond
I'm afraid I'm not smart enough to add this feature on my own.
No problem, you are doing a wonderful job with Fusion-C already! Maybe there are some people here on the forum that can help the Fusion-C community with extending it with this feature
Reading a plain text file is partially working. I am trying to read certain data in an array. However the data gets lost somewhere. A small code snippet for putting the data in an array:
A default declaration is made:
const char * Lvl[169] = {
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00",
"Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00","Z00"};
Then I am trying to change the default values by reading from disk and looping through the filedata:
]for (i=0;i<169;++i)
{
memcpy(Lvl[i],&FileData[i*3+charsb4array],3);
}
A const char array is not supposed to have its members changed, have you tried to use just a char * ? SDCC might be using a different convention than the one you are used to, there are command switches to choose from different behaviors / set of rules, but it might be easier to just not complicate it and use a mutable pointer with mutable elements (no const anywhere)