Hello everyone,
I want to add a target to z88dk on Ubuntu. I called it myrdk.
To keep things simple, I built it the same as the abc80 target that already existed.
I proceeded as indicated in "https://github.com/z88dk/z88dk/wiki/Cla ... targetting".
The myrdk_clib.lib library for the myrdk target has been built and is in the correct locations.
Then when I try to compile with "zcc +myrdk -create-app world.c" I get the following error:
Unknown machine target "myrdk"
appmake [+target] [options]
The z88dk application generator
This program is used to produce files which are suitable for use in
emulators or on the real hardware. Supported targets are:
+abc80 (abccas ) - (C) 2000 Stefano Bodrato, (C) 2008 Robert Juhasz
+ace (acetap ) - (C) 2001 Stefano Bodrato
+adam (bin2dpp ) - (C) 2021 z88dk
+aquarius (bin2caq ) - (C) 2001 Stefano Bodrato
+c128 (bin3000 ) - (C) 2001 Stefano Bodrato
+c7420 (bin7420 ) - (C) 2015 Stefano Bodrato
.... etc.
The target +myrdk is not included.
I think that I still have to enter somewhere that myrdk exists.
But where?
Can someone help me please?
Problem adding new target
Re: Problem adding new target
I think you need to add support to appmake for your new plataform. That is, something that converts the raw binary files generated by the linker to something that can be used by a "myrdk" emulator to successfully run the code.
E.g. for +zx target (zx spectrum ) the output file created by appmake is a .TAP file, which any spectrum emulator can load and run...
E.g. for +zx target (zx spectrum ) the output file created by appmake is a .TAP file, which any spectrum emulator can load and run...
Re: Problem adding new target
I think that appmake is the last component to deal with.
If you got so far, then you're at a good stage!
Look at (z88dk)/lib/config/, you surely set up 'myrdk.cfg', it is invoking z88dk-appmake by specifying "-Cz myrdk", or similar.
Suppose your target system loader is happy with a Motorola hex format, then you can simply change it to "-Czhex", etc..
Compare it with other config file and the options configured In those files.
You can also use -h on appmake to look at the existing formats.
If you got so far, then you're at a good stage!
Look at (z88dk)/lib/config/, you surely set up 'myrdk.cfg', it is invoking z88dk-appmake by specifying "-Cz myrdk", or similar.
Suppose your target system loader is happy with a Motorola hex format, then you can simply change it to "-Czhex", etc..
Compare it with other config file and the options configured In those files.
You can also use -h on appmake to look at the existing formats.
Re: Problem adding new target
Thank you for the food for thought.
Now I have changed appmake.h and myrdk.c (formerly abc80.c) in the path /home/hans/z88dk/src/appmake/ and recompiled everything.
And what should I say: Now Z88DK recognizes the new target myrdk.
Now I can gradually make the necessary changes to map my hardware.
This consists, among other things:
- 1MB banked memory
- 1 sound card with AY?? sound chip
- IO card with PIO, SIO, CTC
- SD card
- USB port
It was basically designed by the German engineer Rolf-Dieter Klein in the 1980s and thanks to many other developers it has now reached a new high.
Many thanks to the developers of the brilliant software Z88DK.
Now I have changed appmake.h and myrdk.c (formerly abc80.c) in the path /home/hans/z88dk/src/appmake/ and recompiled everything.
And what should I say: Now Z88DK recognizes the new target myrdk.
Now I can gradually make the necessary changes to map my hardware.
This consists, among other things:
- 1MB banked memory
- 1 sound card with AY?? sound chip
- IO card with PIO, SIO, CTC
- SD card
- USB port
It was basically designed by the German engineer Rolf-Dieter Klein in the 1980s and thanks to many other developers it has now reached a new high.
Many thanks to the developers of the brilliant software Z88DK.
Re: Problem adding new target
Have you got a link to a page with details of the hardware? It sounds like an interesting target with modern features (as you get in RC2014 style machines) on an older design.
Re: Problem adding new target
Yes gladly:
https://hschuetz.selfhost.eu/ndr/startseite.html
https://github.com/Creep69/NKC
And there seems to be an emulator for the system too: https://github.com/Nightwulf/NKCEmu
The graphics processor used should pose a challenge for the implementation of the new target.
It is an EF9366 from Thomson, France.
https://hschuetz.selfhost.eu/ndr/startseite.html
https://github.com/Creep69/NKC
And there seems to be an emulator for the system too: https://github.com/Nightwulf/NKCEmu
The graphics processor used should pose a challenge for the implementation of the new target.
It is an EF9366 from Thomson, France.
Re: Problem adding new target
Same of the VG5000, right?
Re: Problem adding new target
VG5000 is EF9345