Search found 56 matches

by fraespre
Fri Feb 02, 2024 8:04 am
Forum: Sinclair ZX
Topic: Issues when migrating to classic lib
Replies: 15
Views: 583

Re: Issues when migrating to classic lib

I already saw how it works in "crt_init_amalloc.asm". By default, crt gets the end of the compiled program, which is marked with "tail" label and it generates the Heap struct until the Stack, or proportion of this space. I fixed my "heap.asm" code to do the same at the ...
by fraespre
Thu Feb 01, 2024 12:10 am
Forum: Sinclair ZX
Topic: Issues when migrating to classic lib
Replies: 15
Views: 583

Re: Issues when migrating to classic lib

Thank you very much Jorge and Dom for solving my linking errors related to SP1 ;) However, I have one more left, and it seems more complicated... As I said it's related with "Changing the Memory Map" to put the Heap at the beginning as it's detailed in https://www.z88dk.org/wiki/doku.php?i...
by fraespre
Tue Jan 30, 2024 12:45 pm
Forum: Sinclair ZX
Topic: Issues when migrating to classic lib
Replies: 15
Views: 583

Re: Issues when migrating to classic lib

hi Jorge, Firstly, thanks a lot for your superfast response. Let's go to follow your instructions to demonstrate whether my environment is correctly installed/configured. This is my script to generate a console with z88dk configuration enabled: set Z88DK_DIR=C:\mio\soft\dev\z80\z88dk\z88dk-win32-2.3...
by fraespre
Mon Jan 29, 2024 5:38 pm
Forum: Sinclair ZX
Topic: Issues when migrating to classic lib
Replies: 15
Views: 583

Issues when migrating to classic lib

hi, Thinking about migrating to classic lib, I launched a compilation with these parameters using the last Release (2.3): zcc +zx -v -Cl-v -m -lndos -lsp1-zx -compiler=sdcc -create-app ... and I find these issues (with the new lib it works perfectly): ../src/./util/renderUtil.c:810: error: undefined...
by fraespre
Mon Jan 22, 2024 10:27 pm
Forum: Sinclair ZX
Topic: sp1 in contended memory
Replies: 2
Views: 498

Re: sp1 in contended memory

you're fully right, I'm yet using the new lib.
Someday, I'll switch the project to the classic one.

Thanks for the tip, dom.
Maybe I'll encourage myself to prepare my own "mmap.inc", so I learn something new.
:)
by fraespre
Fri Jan 19, 2024 6:19 pm
Forum: Sinclair ZX
Topic: sp1 in contended memory
Replies: 2
Views: 498

sp1 in contended memory

hi I noticed the linker locates sp1 library at the beginning of memory (contended area) by default. How could I move this lib to another higher place? (the idea would be to achieve a little improvement in the performance) thanks in advance, https://raw.githubusercontent.com/fraespre/zmemmap/master/d...
by fraespre
Mon Sep 18, 2023 11:23 am
Forum: Sinclair ZX
Topic: Another problem with new SDCC
Replies: 5
Views: 1867

Re: Another problem with new SDCC

Using this "Winmake.bat" the problem is fixed ;-)
Anyway, I'll test it again with the next "nightly" to make sure that all together is OK.

Thanks a lot, Dom!!!
by fraespre
Sun Sep 17, 2023 11:49 am
Forum: Sinclair ZX
Topic: Another problem with new SDCC
Replies: 5
Views: 1867

Re: Another problem with new SDCC

to be honest, I always do a post-process when try a candidate version, because I have a special sp1 configuration ... so, I do lib rebuild. Your post has reminded me that the issue could be related. echo. & echo. & echo CHANGING: 'config_sp1.m4' set FILE_M4=config_sp1.m4 cd %Z88DK_DIR%\%CONF...
by fraespre
Sun Sep 17, 2023 9:19 am
Forum: Sinclair ZX
Topic: Another problem with new SDCC
Replies: 5
Views: 1867

Re: Another problem with new SDCC

btw, I use this command line:

Code: Select all

zcc +zx -vn -compiler=sdcc -clib=sdcc_iy -startup=31 -pragma-include:src/zpragma.inc -SO3 --opt-code-size --allow-unsafe-read -DDEBUG=1 -m -create-app
by fraespre
Sun Sep 17, 2023 9:10 am
Forum: Sinclair ZX
Topic: Another problem with new SDCC
Replies: 5
Views: 1867

Another problem with new SDCC

hi, Trying to upgrade the z88dk-sdcc to a current version, I found these weird errors (but the compilation/linking process works correctly with a March 2023 nightly): C:/mio/soft/dev/z80/z88dk/z88dk-20230916/lib/config/../../libsrc/_DEVELOPMENT/target/zx/../clib_stubs.inc:12: error: undefined symbol...
by fraespre
Thu Aug 03, 2023 9:04 am
Forum: Project Activity
Topic: [sdcc] Upgraded to 4.3.0 r14210
Replies: 3
Views: 1862

Re: [sdcc] Upgraded to 4.3.0 r14210

just as a curiosity,
what are the consequences of not using the official sdcc preprocessor?
by fraespre
Sat May 13, 2023 11:33 am
Forum: Sinclair ZX
Topic: Using SP1 for scroller games
Replies: 46
Views: 17466

Re: Using SP1 for scroller games

hi Jorge, As you know, I'm following your advances in this topic very closely. I believe the real possibility of generating scrolling in the sp1's tiles is awesome. So, congrats for open this great "new feature" or "trick" (it depends on your point of view). Besides, I'm very hap...
by fraespre
Mon Feb 13, 2023 8:44 am
Forum: Sinclair ZX
Topic: Foreground blocks in SP1 with sp1_cs
Replies: 5
Views: 3478

Re: Foreground blocks in SP1 with sp1_cs

Thanks Jorge, your answer opened my eyes. Following on from what you said, I did some tests using only one instance of the foregrounds and yes, all the problems vanished. I had the thought to use them like "special" tiles (with mask), reusing their cs structs. However, I have already seen ...
by fraespre
Mon Feb 06, 2023 10:17 am
Forum: Sinclair ZX
Topic: Foreground blocks in SP1 with sp1_cs
Replies: 5
Views: 3478

Re: Foreground blocks in SP1 with sp1_cs

hi amateus and the rest, I'm trying to improve your foregrounds example to another one more complex. Specifically, I'm trying to build a screen with several foreground-tiles (instances) repeated. I mean same graphic in several positions. And I try to remove them (reset the screen) after. But I have ...
by fraespre
Sat Sep 24, 2022 7:23 am
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 1904

Re: Compilation error with Lst files

Ok. Then, for now, the same thing is happening to me.
I suspect the problem started with the latest official release.

can you try some of these nightly?
z88dk-20220906
z88dk-20220918
by fraespre
Fri Sep 23, 2022 3:17 pm
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 1904

Re: Compilation error with Lst files

oh wow! so quickly! thank you, Jorge!
I'm curious, what z88dk version are you using in the tests?
by fraespre
Fri Sep 23, 2022 6:47 am
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 1904

Re: Compilation error with Lst files

hi Jorge, I've created a skeleton to reproduce the problem. here: https://ufile.io/j6idbpms Remember: you should define the paths to z88dk versions in the file "_console.bat". Then you can execute it and a console will appear. Inside that console, you execute "full_build.bat" to ...
by fraespre
Thu Sep 22, 2022 5:27 pm
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 1904

Re: Compilation error with Lst files

Well, since your sys, cmp, man and res directories are all at the same level, and you are launching everything from directory build, It seems that all of them should start with the same "./" Or "../" sequence....? ei Jorge, theoretically all references I have into the "src....
by fraespre
Tue Sep 20, 2022 5:20 pm
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 1904

Re: Compilation error with Lst files

OK Jorge, This is my directory layout : myproject full_build.bat |- build |- config |- res |- src src.lst |- cmp cmp.lst |- man man.lst |- res res.lst |- sys sys.lst And this is full_build.bat cd build del *.* /F /Q zcc +zx -v -Cl-v -m -startup=31 -compiler=sdcc -create-app ^ -clib=sdcc_iy -SO3 --op...
by fraespre
Sun Sep 18, 2022 4:57 pm
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 1904

Compilation error with Lst files

hi, I've found something strange, that could be a bug ... but, I'm really don't know. I've several z88dk versions installed in my windows. So, I've a batch file to prepare the environment vars. rem set Z88DK_DIR=C:\mio\soft\dev\z80\z88dk\z88dk-20220317 rem set Z88DK_DIR=C:\mio\soft\dev\z80\z88dk\z88...
by fraespre
Tue Apr 26, 2022 11:46 am
Forum: Sinclair ZX
Topic: Can I have multiple sections for C code?
Replies: 4
Views: 1811

Re: Can I have multiple sections for C code?

I was looking for something similar some time ago, I tried putting the section between "__asm" definition, but it didn't work for my case.

Another related thread with this topic, that I found via google too:
https://foro.speccy.org/viewtopic.php?t=5032
by fraespre
Fri Apr 15, 2022 7:26 am
Forum: Sinclair ZX
Topic: Trying to get speed from the monochrome sprites
Replies: 5
Views: 2086

Re: Trying to get speed from the monochrome sprites

ei Stefano, really nice graphics! Congrats!

I think you could try to use the sp1 sprite engine. That would improve the speed very much.
by fraespre
Tue Oct 26, 2021 7:41 am
Forum: Sinclair ZX
Topic: Another doubt about custom memory map
Replies: 5
Views: 4726

Re: Another doubt about custom memory map

Hi Timmy, I think that resolving tags to give the final address of a compiled program is part of the linker functions. Another thing is whether you can indicate some preference on this final address in a specific piece of code ... as I want. Don't forget that extracting this part of code as an exter...
by fraespre
Mon Oct 25, 2021 12:05 pm
Forum: Sinclair ZX
Topic: Another doubt about custom memory map
Replies: 5
Views: 4726

Re: Another doubt about custom memory map

thanks a lot Jorge for your suggestion! I thought something similar, but without need to use the Basic interpreter glue the both parts. Generate the binary files independently: - The current game generates 2 files: LOWMEM.bin (5kb of Heat void) and COMPILED.bin (where I will Include a call to theori...