|
Post by quentinpsausages on Nov 23, 2023 23:18:08 GMT
Hello friends, I have a problem that is driving me mad and I'm hoping someone might have some ideas. I am working on a game called Knightmare for the ZX Spectrum. The total code size is currently 22840kb and the game works fine. But when I try to add more code, the game simply crashes, as if I have hit the memory limit. It is not an issue with the code I'm trying to add - the game crashes no matter what extra code I try to add. Meanwhile, as you can see from the image below, I have another game I am working on currently called Chasbert that has a file size of 35988kb, and that game works just fine. Please help - what is happening here? Why can't I add any more code to my game?! Thanks!
|
|
|
Post by ramon on Nov 24, 2023 12:24:52 GMT
Asegúrese de seleccionar el modelo 128k en tu emulador.
|
|
|
Post by oss003 on Nov 24, 2023 15:14:12 GMT
You can find the end address of the code at the end of the ..\Suite ZX\Sjasmplus\LIST.TXT file. This may not exceed $F9B6 IIRC.
Are you using MPAGD v0.7.10? If you can upload the DELETEME.AGD file then I can have a look at finding the problem. You can also mail it to oss003@zonnet.nl.
Greetings Kees
|
|
|
Post by quentinpsausages on Nov 25, 2023 19:36:08 GMT
Thanks for your responses! Ramon, sorry, I don't speak Spanish, but yes my emulator is definitely in 128k mode.
Kees, thanks for your very kind offer. I've decided to rebuild my code from the ground up to see if I can solve the problem, but if I can't, then I may take you up on the offer of some bug fixing assistance!
Thanks, Tom
|
|
|
Post by xavisan on Nov 26, 2023 21:56:40 GMT
Hi quentinpsausages,
Many times it is not a problem with the code, it may be that you have too many sprites with many frames, that causes problems in terms of reaching possible memory uses for the game.
|
|