<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">BogDan via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Fr., 11. Feb. 2022, 11:09:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
According to <a href="https://wiki.freepascal.org/Z80" rel="noreferrer noreferrer" target="_blank">https://wiki.freepascal.org/Z80</a> fpc is able to compile pascal code for z80.<br>
Sadly I'm a newbie on fpc, therefore I have a few questions:<br>
<br>
1. I changed a bit the build script from <a href="https://wiki.freepascal.org/Z80#Building" rel="noreferrer noreferrer" target="_blank">https://wiki.freepascal.org/Z80#Building</a> and I managed to build fpc, and when I built a simple hello world file, the resulted tzx file seems wrong:<br>
./ppcrossz80 -n -Tzxspectrum -PZ80 -Fu/path/to/fpc/lib/fpc/3.3.1/units/z80-zxspectrum/rtl -viwn -CX -XX test.pas<br>
<br>
$ cat test.tzx<br>
:105CF800314CEA0188E0214DE6373FED423E000293<br>
:105D0800032BBD20FABC20F7FD2288E0F31100FE2A<br>
:105D180021FDFD7AED477D121C20FC141236C321AB<br>
....<br>
<br>
It seems is an IHX format not tzx<br>
Also the result for a simple hello world is way too big (over 20k) !<br>
I assume that I'm passing wrong params to ppcrossz80. What params should I use? Where I can find more info on this matter?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You need to make sure that the ihxutil built in utils/ihxutil/<hostcpu>-<hostos>/ is available in PATH, so that the compiler will do the conversion. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>2. Is it possible to add z80 cross compilation target to FP IDE? The FP IDe shows me a few targets, but z80 is not there.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The text mode IDE can only ever compile for one CPU platform, so you need to build it for Z80. Though I don't know right now whether this is enabled. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>