Problem adding new target

Discussion about other targets
Post Reply
RVF400
New member
Posts: 6
Joined: Thu Feb 19, 2009 11:03 am

Problem adding new target

Post by RVF400 »

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?
User avatar
jorgegv
Well known member
Posts: 287
Joined: Wed Nov 18, 2020 5:08 pm

Re: Problem adding new target

Post by jorgegv »

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...
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Re: Problem adding new target

Post by stefano »

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.
RVF400
New member
Posts: 6
Joined: Thu Feb 19, 2009 11:03 am

Re: Problem adding new target

Post by RVF400 »

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.
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Re: Problem adding new target

Post by dom »

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.
RVF400
New member
Posts: 6
Joined: Thu Feb 19, 2009 11:03 am

Re: Problem adding new target

Post by RVF400 »

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.
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Re: Problem adding new target

Post by stefano »

Same of the VG5000, right?
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Re: Problem adding new target

Post by dom »

VG5000 is EF9345
Post Reply