[z88dk-dev] The problem was....

Bridge to the z88dk-developers mailing list
Post Reply
Henk Poley

[z88dk-dev] The problem was....

Post by Henk Poley »

Z80ASM...

The new ctr0's need the newest version of z80asm...
I used the old one from Dennis Gr?ningers page...

Because all the errors were in assembly I've tried to recompile z80asm...
I found an error in the config.h... when you compile for DOS or WIN32 it
will give some error like "open string error". I found the bug, I'll see if
you can find it too (to make it easy I've attached the fixed version).

Now the next problem:
The first z80asm execution goes well ("z80asm -eopt -ns -Mo
C:\WINDOWS\TEMP\s3vvna3f_"), but the it crashes in the second instance
("z80asm -a -m -Mo -oa.bas -ic:\dos\z88dk\lib\clibs\z80_crt0
-ic:\dos\z88dk\lib\clibs\ti83ansi_clib C:\WINDOWS\TEMP\s3vvna3f_1
C:\WINDOWS\TEMP\s3vvna3f_")

At least it hasn't done anything the last 5 minutes (or should it take
sooooo long on a Pentium100?)

Oh, well, never mind, it seems to go on if I switch off all optimizations
(in GCC). But of coarse, ''every has it's price", I've got NEW errors...

BTW: yes, I've got the most current versions (CVS...). Did another
check/update this day, so it must be all right...

Henk Poley


The errors:
z80asm -a -m -Mo -oa.bas -ic:\dos\z88dk\lib\clibs\z80_crt0
-ic:\dos\z88dk\lib\clibs\ti83ansi_clib C:\WINDOWS\TEMP\s3vvn3jb_1
C:\WINDOWS\TEMP\s3vvn3jb_
8 errors occurred during assembly
Key to filenames:
C:\WINDOWS\TEMP\s3vvn3jb_ = world.c
File 'C:\WINDOWS\TEMP\s3vvn3jb_1.asm', Module 'Z88_CRT0', Symbol not
defined
Error in expression CLOSEALL

File 'C:\WINDOWS\TEMP\s3vvn3jb_1.asm', Module 'Z88_CRT0', Symbol not
defined
Error in expression VFPRINTF_MINI

File 'C:\WINDOWS\TEMP\s3vvn3jb_.asm', Module 'WORLD', Symbol not defined
Error in expression FPUTS

File 'C:\WINDOWS\TEMP\s3vvn3jb_.asm', Module 'WORLD', Symbol not defined
Error in expression FPUTC

File 'C:\WINDOWS\TEMP\s3vvn3jb_.asm', Module 'WORLD', Symbol not defined
Error in expression PRINTN

File 'C:\WINDOWS\TEMP\s3vvn3jb_.asm', Module 'WORLD', Symbol not defined
Error in expression PRINTF

File 'C:\WINDOWS\TEMP\s3vvn3jb_.asm', Module 'WORLD', Symbol not defined
Error in expression SPRINTF

File 'C:\WINDOWS\TEMP\s3vvn3jb_.asm', Module 'WORLD', Symbol not defined
Error in expression PRINTF
Henk Poley

Post by Henk Poley »

Z80ASM...

The new ctr0's need the newest version of z80asm...
I used the old one from Dennis Gr?ningers page...

<grin> That makes sense - yeah, the new one supports UNDEFINE which the
old version of z80asm will have a hernia over.

Maybe nice to post the new ones somewhere... (DOS/Win versions)
Anyways, will the compiler run under "real DOS"?
Real DOS hasn't got long file-names, or should you then only unzip the
\clib and \include?

Now the next problem:
The first z80asm execution goes well ("z80asm -eopt -ns -Mo
C:\WINDOWS\TEMP\s3vvna3f_"), but the it crashes in the second instance
("z80asm -a -m -Mo -oa.bas -ic:\dos\z88dk\lib\clibs\z80_crt0
-ic:\dos\z88dk\lib\clibs\ti83ansi_clib C:\WINDOWS\TEMP\s3vvna3f_1
C:\WINDOWS\TEMP\s3vvna3f_")

Right, I'm not a DOS/Win programmer (I'm employed to do unix stuff (funny
that!)), so I'm not entirely certain what's going on there. Have you run
into this at all Stefano? The thing about optimizations for gcc is is

that
they may or may not work - have you tried doing -O1 instead of -O2?

At least it hasn't done anything the last 5 minutes (or should it take
sooooo long on a Pentium100?)

Nope, on a P100 it should be over in seconds (well, ish!)

It does do it in seconds, but it give errors :(

The errors:

This is weird, seems to be that the ti83 library is being ignored or is
corrupt - have you tried compiling for another target (say the z88) and
do you ge tthe same errors?

Compiling for the z88 gives EXACTLY the same errors...

Can't Stefano upload his compiled programs, so I can download them (please
don't email them...). My GCC version (from Bloodshed Dev-C++), can't even
make executable that run from plain DOS... I need to run them in a
DOS-window under Windows....

Should there be a "Ti83_clib.lib"???
I only have a "Ti83ansi_clib.lib"...
So I changed the config-file that it points to that lib...

Henk Poley


PS:
[attached the output from the "set" command]
Maybe you can see something in this...
Post Reply