Is this a global variable???

On 9/30/07, David Lucena <> wrote:
I am using SDCC to program a z80 machine. When I create this code:

unsigned char test = 0;

It is assembled as follows:

        ld      iy,#_test
        ld      0(iy),#0x00

But I would like that it could be initialized as its done in assembler:

.db 0

Is there any way of forcing this behavior?


Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!

This email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
Sdcc-user mailing list