[MSX-C] Q&A official thread

Страница 55/55
48 | 49 | 50 | 51 | 52 | 53 | 54 |

By DarkSchneider

Paladin (906)

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

25-06-2018, 08:40

As you compile on the emulator, create a machine with DOS2. The compiled programs works fine on Nextor. So don't worry if the compiler/assembler itself don't.

By cosmic

Supporter (15)

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

25-06-2018, 13:04

Yes, I assume that under that circumstances, that is the way to go.

Regarding the issue, it seems like the more you use msx-c tools (i.e. cf.com, cg.com, etc...) after a clean restart, the more prone to fail.
For simple compilations (i.e. just a simple printf("Hello world\n")), and under Nextor, it uses to compile apparently fine the first time(s). By iterating the same compilation process, it crashes. With more complex compilations, it usually crashes on the first compilation process.

Regards,

By Roland007

Expert (85)

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

22-03-2019, 14:25

Some questions about C and speeding it up. I'm writing some code that requires many locate operations. So I am looking at the fastest way to set the cursor position. I know 0xF3DD and 0xF3DC contain the locations of the cursor but are they safe? I can define a global pointer to these addresses, write values and skip the locate function or is there a downside? Another question is, is this actually faster (assuming MSX-C uses BIOS and so skip a bios routine that writes these values to F3DD and F3DC) or is there an even faster way?

Thanks!

By AxelStone

Prophet (2738)

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

05-11-2019, 22:50

Roland007 wrote:

Some questions about C and speeding it up. I'm writing some code that requires many locate operations. So I am looking at the fastest way to set the cursor position. I know 0xF3DD and 0xF3DC contain the locations of the cursor but are they safe? I can define a global pointer to these addresses, write values and skip the locate function or is there a downside? Another question is, is this actually faster (assuming MSX-C uses BIOS and so skip a bios routine that writes these values to F3DD and F3DC) or is there an even faster way?

Thanks!

Hello sorry for delay, long time not to return to program. One question, why not to use simply locate function of MSX-C ? It calls POSIT BIOS function and it's completely safe and standard.

By AxelStone

Prophet (2738)

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

05-11-2019, 23:12

Hello everyone, to recover the last conversation about libraries, right now MSX-C has still the most complete libraries set dedicated to MSX, check out here: https://www.fvue.nl/wiki/MSX-C_manual

Thanks to the work of people like Eric Boez and Fernando García we have now a very complete set of libraries with Fusion-C. If you are thinking about to jump to a cross compiler is a good time to do it. On the other hand, Z88DK is growing fast too, so you have both options.

At this moment I'm still coding in MSX-C and I've overcome all obstacles, I'm near to finish a complete game engine entirely done in MSX-C.

Страница 55/55
48 | 49 | 50 | 51 | 52 | 53 | 54 |