Search found 136 matches

by jorgegv
Fri Sep 23, 2022 4:40 pm
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 203

Re: Compilation error with Lst files

I'm using a nightly from 20th May 2022. I believe it was just a bit before the latest official release came out, if I'm not wrong... I used to be switching Z88DK versions all the day back then...
by jorgegv
Fri Sep 23, 2022 8:27 am
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 203

Re: Compilation error with Lst files

Mmm I have downloaded your skeleton and I manually did the steps that the BAT does until compiling (I'm on Linux): I move to the build dir and then launch the ZCC command. It compiles without problems and generates these files: $ ls -l total 272 -rw-r--r-- 1 jorgegv jorgegv 2129 sep 23 10:20 robbnn_...
by jorgegv
Thu Sep 22, 2022 6:19 pm
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 203

Re: Compilation error with Lst files

Is It possible that you share the full code so that I can test in my machine?
by jorgegv
Thu Sep 22, 2022 5:42 am
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 203

Re: Compilation error with Lst files

Thanks Dom, that was the issue that I had read some time ago. I believe the last comment is probably the explanation for fraespre's issue.
by jorgegv
Wed Sep 21, 2022 6:57 am
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 203

Re: Compilation error with Lst files

I mean: I think your src.lst file should read like this: @../sys/sys.lst @../cmp/cmp.lst @../man/man.lst @../res/res.lst main.c heap.asm Also, I think I can remember some issue not so long ago about the base directory used by ZCC to open the command line listing files...? I have searched the github ...
by jorgegv
Tue Sep 20, 2022 5:26 pm
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 203

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....?
by jorgegv
Mon Sep 19, 2022 8:44 pm
Forum: Misc
Topic: z80asm equ
Replies: 11
Views: 5905

Re: z80asm equ

Arrggh!!! So I could just have compiled It!! :-D

Anyway, experience acquired...

Thanks Dom
by jorgegv
Mon Sep 19, 2022 7:13 pm
Forum: Misc
Topic: z80asm equ
Replies: 11
Views: 5905

Re: z80asm equ

Hi pjshumphreys,

yes, that directive is what I used. So finally I replace the following PASMO statement:

Code: Select all

...
my_label: equ $+4
with the following Z80ASM one:

Code: Select all

...
defc my_label = ASMPC+4
by jorgegv
Mon Sep 19, 2022 7:10 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 18
Views: 4652

Re: Arkos Tracker 2 in z88dk

SUCCESS! Arkos can me compiled to any address and runs without issues! As I said, interested souls can see the procedure in the repo indicated above, it has been updated with the working changes: https://github.com/jorgegv/z88dk-arkos-relocatable Now on with mi integration into RAGE1. Thanks for the...
by jorgegv
Mon Sep 19, 2022 7:03 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 18
Views: 4652

Re: Arkos Tracker 2 in z88dk

ASMPC is the functionality I need. I took it from this z80asm syntax reference: https://github.com/obiwanjacobi/Zingularity/blob/master/Source/Language%20Server/server/src/z80asm/z80asm.g4 , which was mentioned on this issue: https://github.com/z88dk/z88dk/issues/1219 I have modified my adapter scri...
by jorgegv
Mon Sep 19, 2022 4:51 pm
Forum: Misc
Topic: z80asm equ
Replies: 11
Views: 5905

Re: z80asm equ

Mmm maybe ASMPC is what I'm looking for...?
by jorgegv
Mon Sep 19, 2022 4:37 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 18
Views: 4652

Re: Arkos Tracker 2 in z88dk

Mmm my Converter for pasmo syntax does not understand the $ operator for the current assembly pointer value.

Is there any similar feature in z88dk-z80asm?
by jorgegv
Mon Sep 19, 2022 4:29 pm
Forum: Misc
Topic: z80asm equ
Replies: 11
Views: 5905

Re: z80asm equ

Hi, just found this thread and my question seems related to it. I have the following PASMO syntax: ... my_label: equ $+4 ... That defines the my_label constant to be the current assembling position at the beginning of the line plus 4 bytes. Does z88dk-z80asm have a similar syntax? How can I acces th...
by jorgegv
Mon Sep 19, 2022 12:05 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 18
Views: 4652

Re: Arkos Tracker 2 in z88dk

My next idea is to do bare bones binary builds of the RASM source (original) and Z88DK source (processed), both compiled to the same ORG, to check if the generated binaries are the same byte by byte (they should). And here is the output from that test: ... 3 files with the same hash should be shown...
by jorgegv
Mon Sep 19, 2022 11:39 am
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 18
Views: 4652

Re: Arkos Tracker 2 in z88dk

Thanks andy. I had already read your Arkos post, but you seem to hardcode lots of addresses (found in map files), which is precisely what I want to avoid. I'd like to find a scriptable way of going from Arkos sources to Z88DK compatible sources that can be compiled to any address, not a fixed one. E...
by jorgegv
Mon Sep 19, 2022 8:30 am
Forum: Sinclair ZX
Topic: Compilation error with Lst files
Replies: 14
Views: 203

Re: Compilation error with Lst files

What is your directory layout? And from what directory are you running the build command?

Since there are relative paths both in your command and in the LST files, it might be some error with that...
by jorgegv
Mon Sep 19, 2022 8:18 am
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 18
Views: 4652

Re: Arkos Tracker 2 in z88dk

Hi people, I'm in the process of integrating Arkos Tracker 2 into my RAGE1 engine, so I have revisited Derek's repo with the implementation of the blob method (thanks Derek!). I have added some new test using your method without an IM2 ISR, but from a main loop (the method I need for RAGE1), and it ...
by jorgegv
Thu Sep 01, 2022 6:06 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 18
Views: 8229

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

Hi again, people, I have some news about my RAGE1 engine which may be interesting to some :-) It's been a busy year, but I've managed to find some periods to work intensively on it, and even though version 0.5.0 is still not ready, I have already finished some new features needed for a new game whic...
by jorgegv
Mon Jul 25, 2022 9:17 am
Forum: Announcements
Topic: z88dk v2.2 released
Replies: 5
Views: 662

Re: z88dk v2.2 released

Just added a PR for this: https://github.com/z88dk/z88dk/pull/2056 J. Hmmm, I can't be the only person who went to Github, clicked the green "Code" button, then hit "Download ZIP" from the dropdown that appears. Is there any merit in putting a check in the build script to stop wi...
by jorgegv
Mon May 09, 2022 5:24 pm
Forum: Sinclair ZX
Topic: zsdcc register usage
Replies: 8
Views: 1162

Re: zsdcc register usage

Well for a pretty fast interrupt routine, I just code it to set a global flag, and then poll that flag in the main program loop. With that kind of interrupt routine, pushes and pops account for pretty much all of the execution time. I prefer to have the interrupt routines quite bounded wrt execution...
by jorgegv
Mon May 09, 2022 7:12 am
Forum: Sinclair ZX
Topic: Simple Z80ASM question
Replies: 2
Views: 592

Re: Simple Z80ASM question

I think the explanation is he following: start is a label, so it is resolved at link time. This means it is set to 0 at compile time and its address noted for later resolving after code has been relocated to its final position. So at compilation time your code checks for start == 0, it finds it is t...
by jorgegv
Mon May 09, 2022 6:56 am
Forum: Sinclair ZX
Topic: zsdcc register usage
Replies: 8
Views: 1162

Re: zsdcc register usage

SDCC uses IX as its frame pointer, so it also needs to be preserved always (that is, if you use IX inside you function...or if you call some other function inside yours, which may use IX). I just worked on this when migrating SP1 sources to compile with SDCC in Classic mode. Documented in section 4....
by jorgegv
Fri May 06, 2022 4:47 pm
Forum: Sinclair ZX
Topic: zsdcc register usage
Replies: 8
Views: 1162

Re: zsdcc register usage

AFAICT function calls considers regular registers are thrashed, i.e. AF, BC, DE and HL, and the alternate ones, and also IY or IX, depending on some settings. The issue about not seeing lots of pushes/pops around function calls I think obeys to the fact that the compiler is smartly allocating regist...
by jorgegv
Fri Apr 29, 2022 9:37 pm
Forum: Bug reports
Topic: Graphics.h Issues / Questions
Replies: 13
Views: 2974

Re: Graphics.h Issues / Questions

Try adding di/ei as well and see if that removes the pause. Like this? (I'm not really into ASM) #asm di push iy ei #endasm draw(...); #asm di pop iy ei #endasm That didn't help, the pause is still there. I believe he meant this: #asm di push iy #endasm draw(...); #asm pop iy ei #endasm
by jorgegv
Mon Apr 25, 2022 5:00 pm
Forum: Feature Requests
Topic: Issues when migrating back to Classic from newlib
Replies: 50
Views: 9157

Re: Issues when migrating back to Classic from newlib

OK, so here is the new PR: https://github.com/z88dk/z88dk/pull/2006 (I have withdrawn the old one).

Much cleaner, only contains my commits, and it's much, much easier to review :-)

Please share your feedback, Dom ;-)