zcc +cpm target fails

Bug reports (if you don't/won't have a Github account)
Post Reply
pscust
Well known member
Posts: 194
Joined: Thu Jun 23, 2011 3:34 pm

zcc +cpm target fails

Post by pscust »

zcc +cpm target fails the appmake stage:

zcc +cpm -create-app -oenigma.bin -vn examples/console/enigma.c
Unknown machine target "osca"

appmake [+target] [options]
[... long error message...]


In spite of the error, the executable enigma.bin is created and can be called by a cpm emulator.

Regards,
Paulo
stefano
Well known member
Posts: 2151
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

I probably messed up with cpm.cfg and osca.cfg

Just edit:
{z88dk}/lib/config/cpm.cfg

and remove the ending portion of the SUBTYPE entry (-Cz+osca)
pscust
Well known member
Posts: 194
Joined: Thu Jun 23, 2011 3:34 pm

Post by pscust »

I tried, no success.

The error now is: "appmake [+target] [options]"

There is no +cpm target, as the binary file generated by the assembler is ready to load in a CPM emulator. But appmake is called without a target and fails.
stefano
Well known member
Posts: 2151
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

My fault (again).. I didn't describe the complete fix, also "-create-app" has to be removed.
In the meantime I remembered my original intention, it is just to copy the binary result into a file with the right extension, (no other changes), so the output executable name can be different than "a.com" or "a.exe".
pscust
Well known member
Posts: 194
Joined: Thu Jun 23, 2011 3:34 pm

Post by pscust »

Thanks for your help, it now works.

I've committed the modified cpm.cfg, without -Cz+osca to CVS.
stefano
Well known member
Posts: 2151
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

Thank you. By the way it was't a serious bug, it is rather a missing feature: appmake does not have an option for CP/M and OSCA.
Such tool might be shared between the two targets and should simply copy the binary file changing just the filename extension.

EXE for OSCA, COM for CP/M

I planned to do it then I forgot about it !
Post Reply