1 /*
2 bug-2590.c
3 */
4
5 #include <testfwk.h>
6
7 #if (defined __SDCC_z80 || defined __SDCC_z180 || defined __SDCC_gbz80 || defined __SDCC_r2k || defined __SDCC_r3ka || defined __SDCC_tlcs90)
8
9 #pragma disable_warning 85
10
11 const unsigned char *letras_tiles01;
12
msx_vfill(unsigned int addr,unsigned int value,unsigned int count)13 extern void msx_vfill(unsigned int addr, unsigned int value, unsigned int count) __smallc
14 {
15 }
16
msx_vwrite_direct(void * source,unsigned int dest,unsigned int count)17 extern void msx_vwrite_direct(void* source, unsigned int dest, unsigned int count) __smallc
18 {
19 }
20
poner_texto_tiles(unsigned char * texto,unsigned int size,unsigned int posicion,unsigned char color)21 void poner_texto_tiles(unsigned char *texto, unsigned int size, unsigned int posicion, unsigned char color)
22 {
23 unsigned char i = 0;
24
25 while (size)
26 {
27
28 if (texto[i] == ' ')
29 {
30 msx_vfill((posicion << 3), 0x00, 8);
31 }
32 else
33 {
34 msx_vwrite_direct(letras_tiles01 + ((*(texto + i) - 65) << 3), posicion << 3, 8);
35 }
36
37 size--;
38 }
39 }
40
41 #endif
42
testBug(void)43 void testBug(void)
44 {
45 }
46