Search found 26 matches

by WORP3
Tue Mar 14, 2023 3:15 pm
Forum: Other targets
Topic: New target tutorial/classic +z80 target
Replies: 1
Views: 1397

Re: New target tutorial/classic +z80 target

Great to see that new information has been added, overall a nice overview in the making :) I guess the problem in documenting something like z88dk is to try and guess what the people are going to be using for. Nevertheless good article!
by WORP3
Sat Mar 11, 2023 6:15 pm
Forum: Misc
Topic: z88dk calling conventions on return value?
Replies: 10
Views: 2183

Re: z88dk calling conventions on return value?

At least the program is running now and compiling without any further warnings, so happy for now :) Now going to start in adding all of the additional code.
by WORP3
Sat Mar 11, 2023 5:45 pm
Forum: Misc
Topic: z88dk calling conventions on return value?
Replies: 10
Views: 2183

Re: z88dk calling conventions on return value?

Thanks for the answers again!

Looks like that issue indeed, although an additional typecast will prevent the warning :)
by WORP3
Sat Mar 11, 2023 5:26 pm
Forum: Misc
Topic: z88dk calling conventions on return value?
Replies: 10
Views: 2183

Re: z88dk calling conventions on return value?

"unreachable code" is solved, so forget about that question please ;)
by WORP3
Sat Mar 11, 2023 5:13 pm
Forum: Misc
Topic: z88dk calling conventions on return value?
Replies: 10
Views: 2183

Re: z88dk calling conventions on return value?

Why is this compiler complaining "overflow in implicit constant conversion" over the following: OutP(((PARA_IO_DEBUG_H<<8)|1)); Definitions: #define PARA_IO_DEBUG_H 0xFD void OutP(unsigned int RegData)__z88dk_fastcall; Type casting this will get rid of the warning but still strange as it's...
by WORP3
Sat Mar 11, 2023 5:05 pm
Forum: Misc
Topic: z88dk calling conventions on return value?
Replies: 10
Views: 2183

Re: z88dk calling conventions on return value?

* new = sccz80 * sdcc_ix = sdcc * sdcc_iy = sdcc (reserving iy?) Selecting -clib=new -compiler=sdcc is going to result in a broken binary (if it even links). It links without any complains or warnings (Even with a -v instead of -vn). So it's better to select sdcc_ix or remove the parameter from the...
by WORP3
Sat Mar 11, 2023 4:46 pm
Forum: Windows
Topic: Windows 10 installation problem
Replies: 5
Views: 2002

Re: Windows 10 installation problem

After unzipping the nightly build into the destination directory, adding "/bin" to PATH and "/lib/config" to ZCCCFG env variable created, Hopefully you are using \bin and \lib\config as windows is working with backlashes instead of forwards slash. Also having special characters ...
by WORP3
Sat Mar 11, 2023 4:43 pm
Forum: Misc
Topic: z88dk calling conventions on return value?
Replies: 10
Views: 2183

Re: z88dk calling conventions on return value?

Thanks again for the answer dom, really appreciated. This is probably going to sound really dumb, I was actually thinking that the selection of the compiler self was done by the zcc command. As it seems this is only the front-end which is actually calling the compiler... I've added the compiler para...
by WORP3
Thu Mar 09, 2023 8:02 pm
Forum: Misc
Topic: z88dk calling conventions on return value?
Replies: 10
Views: 2183

z88dk calling conventions on return value?

Sorry for the amount of questions lately, but the amount contra-dictionary information on the web keeps me kind of in the dark. It's not that i'm lazy in trying to search for an answer ;) On the following site (Also seen on multiple other sites) they are saying that in case of a 8 bit return value, ...
by WORP3
Thu Mar 09, 2023 7:49 pm
Forum: Misc
Topic: Alternate register set?
Replies: 6
Views: 1781

Re: Alternate register set?

Thanks for the reply, I guess for now I just dischard the idea of using the alternate registers as temporary storage.
by WORP3
Wed Mar 08, 2023 2:58 pm
Forum: Misc
Topic: Alternate register set?
Replies: 6
Views: 1781

Re: Alternate register set?

I'm not using any graphical or floating point libraries, also am I building al of my peripheral/target libraries myself. My only concerns are going out to the standard integer like math/compare stuff that is default inside the compiler.
by WORP3
Wed Mar 08, 2023 12:06 pm
Forum: Misc
Topic: Alternate register set?
Replies: 6
Views: 1781

Alternate register set?

Is it a good or safe idea to use the alternate register set during interrupts when using the new CLIB library? If i'm not mistaken z88dk isn't using the alternate registers but I read somewhere that it can happen that the CLIB is using one or more alternate registers, is it somewhere known if the ne...
by WORP3
Wed Mar 08, 2023 12:00 pm
Forum: Misc
Topic: PRAGMA differences?
Replies: 3
Views: 1697

Re: PRAGMA differences?

Ohh ok that's not really beneficial to a quick start ;)
Is the startup pragma the only one that is in lower case? Or can I presume that everything else is in Capital like normal?
by WORP3
Wed Mar 01, 2023 5:01 pm
Forum: Other targets
Topic: Startup code for new target?
Replies: 6
Views: 2032

Re: Startup code for new target?

I've got the custom CRT working. In the end it became clear to me that with the amount of customization that is possible, it was better for compatibility sake, to switch back to using the default z80 target. Got all special stuff tailored using pragma's now. A lot of searching but in the end it is w...
by WORP3
Wed Mar 01, 2023 4:55 pm
Forum: Misc
Topic: PRAGMA differences?
Replies: 3
Views: 1697

Re: PRAGMA differences?

see: using #pragma output CRT_ENABLE_EIDI = 0 You get this T008Bh CDF300.. Íó.. CALL T00F3H ;call to main T008Eh E5...... å... PUSH HL T008Fh E1...... á... POP HL T0090h 76...... v... HALT T0091h 18FE.... .þ.. JR 0FEh ; Jump to 00091H using #pragma output crt_enable_eidi = 0 You get this: T008Ch FB....
by WORP3
Wed Mar 01, 2023 4:47 pm
Forum: Misc
Topic: PRAGMA differences?
Replies: 3
Views: 1697

PRAGMA differences?

Why is it that the PRAGMA for startup must be in lower case and almost everything else in upper case? If I change this then it won't recognize this option anymore,strange.

Code: Select all

#pragma output startup = 0
#pragma output CRT_ENABLE_EIDI = 0
by WORP3
Tue Feb 28, 2023 5:14 pm
Forum: Other targets
Topic: Startup code for new target?
Replies: 6
Views: 2032

Re: Startup code for new target?

Now knowing that it's possible to just place the crt0.asm file directly beside your source files and use the following command to tel z88dk to use it: zcc +z80 -crt0=crt0.asm program.c Is it then also possible to copy the "Z80_CRT_0.ASM.M4" file out of the "Z88dk\libsrc\_DEVELOPMENT\t...
by WORP3
Tue Feb 28, 2023 4:32 pm
Forum: Other targets
Topic: How do I get z88dk to work on a completely new target system?
Replies: 7
Views: 1904

Re: How do I get z88dk to work on a completely new target system?

Let's take this in stages. First of all, let's get something compiling to the right address and creating a single binary blob. First of all, lets write a crt0. This one is pretty simple (though not the shortest), save it as crt0.asm in the directory along side the file you want to compile: MODULE c...
by WORP3
Wed Jan 18, 2023 4:00 pm
Forum: Misc
Topic: Malware detection on z88dk-appmake.exe?
Replies: 5
Views: 2305

Re: Malware detection on z88dk-appmake.exe?

stefano wrote: Mon Jan 09, 2023 11:29 am Out of curiosity, did it happen on a particular version of z88dk-appmake ?
Not that I know of. I've just starten using Z88dk and only used version "z88dk v2.2".
I uploaded the file to bitdefender for analysis in the meantime.
by WORP3
Sun Jan 08, 2023 12:26 pm
Forum: Misc
Topic: Malware detection on z88dk-appmake.exe?
Replies: 5
Views: 2305

Re: Malware detection on z88dk-appmake.exe?

Type detected: "gen:variant.babar.97188" I have the same problem with GData Antivirus, which uses Bitdefender as a secondary scan engine. This is annoying because GData is mandatory for me at work. I have no problem at home with Windows 7 and Microsoft Security Essentials. GData is prone ...
by WORP3
Sun Jan 01, 2023 1:43 pm
Forum: Other targets
Topic: Startup code for new target?
Replies: 6
Views: 2032

Re: Startup code for new target?

You can remove the --no-crt and use just -startup=31 Thanks for your message, because of this I re-tested the effect of this and found out that the last time I've tested with this operand the reason nothing seems to change was because the compiler isn't generating a new .bin file anymore. So the di...
by WORP3
Sun Jan 01, 2023 1:31 pm
Forum: Misc
Topic: Malware detection on z88dk-appmake.exe?
Replies: 5
Views: 2305

Malware detection on z88dk-appmake.exe?

Bitdefender is noticing me that the following file has a malware infection (Using z88dk v2.2): \Z88dk\bin.x86\z88dk-appmake.exe Type detected: "gen:variant.babar.97188" Does any of you also getting this message when you scan this file? Probably the file is just containing a string comparab...
by WORP3
Fri Dec 30, 2022 5:15 pm
Forum: Other targets
Topic: Startup code for new target?
Replies: 6
Views: 2032

Re: Startup code for new target?

Try changing -startup=31 for minimal footprint Ohh wow using te startup=31 will remove all the startcode, that's a bit more then I would have expected :lol: But maybe not so bad at all, at least I can now work from a clean start without some startup code I don't need. The only problem is off-coarse...
by WORP3
Fri Dec 30, 2022 11:33 am
Forum: Misc
Topic: Hello from a new member
Replies: 2
Views: 1610

Re: Hello from a new member

Hi Timmy, Thank you for your reply :) I know that z88dk has direct support for the MSX system but although it's an MSX project, the code itself isn't really running on the MSX. So that's why I need to alter the startup code and maybe create a new target for this project. Just added a new post for th...
by WORP3
Fri Dec 30, 2022 11:26 am
Forum: Other targets
Topic: Startup code for new target?
Replies: 6
Views: 2032

Startup code for new target?

I've compiled a little test program to hopefully getting started on my new target. For now it's just a basic z80 with 64K ram, no specific rom or compatible peripherals. Code and Data are in the same address space. After compiling using the command below, i'm seeing quite a large startup code presen...