How to run my program (>20k)?

Post Reply
Fabrizio
Member
Posts: 116
Joined: Tue Jul 11, 2017 9:28 pm

How to run my program (>20k)?

Post by Fabrizio »

I am trying to port my game
https://github.com/Fabrizio-Caruso/ASCII-CHASE/

to the msx target but I am not able to get it to start/load.

My game is "successfully" compiled with
zcc +msx -vn -D__MSX__ -DAMALLOC -lmalloc -lndos -create-app -o %deliverables%\msx_experimental.prg <c files>
to msx but if I try to load it with

and loaded it
bload"cas:",r

but the result is always that the emulator reboots while loading
no matter which emulator (bluemsx, fmsx), no matter which msx model and no matter the RAM used in the emulators.

I can even put a trivial main file (test working if I do not include the rest of the code) such as:
int main()
{
puts("\x16\x0A\x0C" "Hello, world!");

return 0;
}
and in this case the emulators get stuck while loading the game.

So maybe the size of the executable is a problem (the emulators have been set with enough RAM).
Do I need to use some special options?

Remark: The game compiles and works fine with other targets (Spectrum and all CC65 targets).

Fabrizio
Fabrizio
Member
Posts: 116
Joined: Tue Jul 11, 2017 9:28 pm

Post by Fabrizio »

P.S: I have the same problem even with the latest version of my game that uses NO heap at all (no mallocs or any other form of explicit dynamic memory allocation).
Fabrizio
Member
Posts: 116
Joined: Tue Jul 11, 2017 9:28 pm

Post by Fabrizio »

The light-version of my program can be loaded with no problem. So it seems to me it is a size issue.
Of course I am setting the emulators with enough RAM (64k or even more).
Post Reply