HispaMSX

Re: [hispamsx] Define character for SCREEN4 and SCREEN2

2004-09-02 15:23:38
I would define the character ascii with the SCREEN4 or SCREEN2 and put a color 
multicolor to it.
The example here down, doen't work. How I can do??

Bye 
Andrea

60 SCREEN 4:CLS:COLOR 15,0,0
70 OPEN"GRP:"AS#1
80 REM DEFINE CHARACTER WALL
90 FOR A=0 TO 7:READ B:VPOKE65*8+A,B:NEXT A
100 DATA 0,251,251,251,0,127,127,127
110 REM COLOR CHARACTER WALL
120 VPOKE 8208,16*8+14
130 PRESET(10,10):PRINT#1,"AAAAAAAAAAAA"
140 GOTO 140

Hi Andrea

When you put a character with PRINT#1, Basic takes its patern from the ROM, not 
the defined character. Try using 

130 for i=0 to 11:VPOKE 6144+i,65:NEXT

This will put character 65 ("A") at start of vram screen zone, address 6144. 
(&h1800) . If you want it on another x & y, 
you must add 1 (x+1) or 32 (y+1)

Byes

Juan Luis, MsxKun



<Anterior en la conversación] Conversación actual [Siguiente en la conversación>
  • Re: [hispamsx] Define character for SCREEN4 and SCREEN2, msx_forever <=