[z88dk-dev] z80asm case insensitive

Bridge to the z88dk-developers mailing list
Post Reply
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

[z88dk-dev] z80asm case insensitive

Post by alvin »

It looks like z80asm is case insensitive?

test.asm:

_n: defs 2
_N: defs 4

z80asm test.asm

Warning at file 'test.asm' line 3: symbol '_n' used as '_N'
Error at file 'test.asm' line 3: symbol '_N' already defined
1 errors occurred during assembly


I ran into this trying to compile a short chess program. C variables are case sensitive so the resulting asm with different case names should be valid.



------------------------------------------------------------------------------
pscust
Well known member
Posts: 194
Joined: Thu Jun 23, 2011 3:34 pm

Post by pscust »

The change to case sensitivity was not done because the library still had a
lot of asm code assuming case insensitive assembly. This was more than one
year ago.

Are we now ready to make the switch? The change in the assembler is quick
to do.

Regards.
Paulo


On Sun, Apr 6, 2014 at 12:40 AM, Paulo Custodio <pauloscustodio@...>
wrote:
z80asm is now case-preserving and case-insensitive.

Symbols are no longer converted to upper-case, but still case-insensitive
searched.
A warning is now issued when a symbol is used with different case than
defined.

This can be an intermediate stage before making z80asm case-sensitive, to be
more C-code friendly.

Regards,
Paulo
On Mon, Jul 27, 2015 at 6:37 AM, alvin (alvin_albrecht@...) <
lists@...> wrote:
It looks like z80asm is case insensitive?

test.asm:

_n: defs 2
_N: defs 4

z80asm test.asm

Warning at file 'test.asm' line 3: symbol '_n' used as '_N'
Error at file 'test.asm' line 3: symbol '_N' already defined
1 errors occurred during assembly


I ran into this trying to compile a short chess program. C variables are
case sensitive so the resulting asm with different case names should be
valid.




------------------------------------------------------------------------------
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

> Paulo wrote:
>The change to case sensitivity was not done because the library still had a lot of asm code assuming case insensitive assembly. This was more than one year ago.
>
>Are we now ready to make the switch? The change in the assembler is quick to do.

Yeah I think we are soon. The last successful build shows the only remaining case issues in the X11 library and there aren't too many of them left. I think we wait until sf cvs is back up (it seems likely another day or two), verify the repository is current (some projects apparently lost some commits near the crash), make the case changes and see if the compile has any more case issues before updating z80asm.



------------------------------------------------------------------------------
pscust
Well known member
Posts: 194
Joined: Thu Jun 23, 2011 3:34 pm

Post by pscust »

z80asm is now case-sensitive.

Please let me know of any issues.

Regards,
Paulo

On Mon, Jul 27, 2015 at 5:47 PM, alvin (alvin_albrecht@...) <
lists@...> wrote:
> Paulo wrote:
>The change to case sensitivity was not done because the library still
had a lot of asm code assuming case insensitive assembly. This was more
than one year ago.
>
>Are we now ready to make the switch? The change in the assembler is
quick to do.

Yeah I think we are soon. The last successful build shows the only
remaining case issues in the X11 library and there aren't too many of them
left. I think we wait until sf cvs is back up (it seems likely another day
or two), verify the repository is current (some projects apparently lost
some commits near the crash), make the case changes and see if the compile
has any more case issues before updating z80asm.




------------------------------------------------------------------------------
Post Reply