struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2590.c
blob124747f73c01619106312f3e32076cf25f128157
1 /*
2 bug-2590.c
3 */
5 #include <testfwk.h>
7 #pragma disable_warning 85
9 const unsigned char *letras_tiles01;
11 extern void msx_vfill(unsigned int addr, unsigned int value, unsigned int count) __smallc
15 extern void msx_vwrite_direct(void* source, unsigned int dest, unsigned int count) __smallc
19 void poner_texto_tiles(unsigned char *texto, unsigned int size, unsigned int posicion, unsigned char color)
21 unsigned char i = 0;
23 while (size)
26 if (texto[i] == ' ')
28 msx_vfill((posicion << 3), 0x00, 8);
30 else
32 msx_vwrite_direct(letras_tiles01 + ((*(texto + i) - 65) << 3), posicion << 3, 8);
35 size--;
39 void testBug(void)