Well, as you remember in SeuTen code explanation I used a poke to change PRINT pointers to a selected page so I was able to draw 4 pages to show in sequence simulating a horizontal scroll...
We can use the same trick to print values wherever we want in VRAM! Not only in name table but in pattern table too (and sprites pattern, color pattern and so on). We'll have a faster (fastest?) redefinition too, becuse PRINT is VERY fast compared with VPOKE series. Look at the video. First redefinition I used in SeuTen and then the new technique:
and here's the complete listing of what you've just seen in the video:
0 B$="¿ÿ¿U¿ÿ¿ÿþÿþUþÿþÿûÿûUûÿûÿïÿïUïÿïÿ'ßWßßWß'äûêûûêûäÿÿÿÿÿÿÿÿ":SCREEN1,2,0:COLOR,1,4:WIDTH32:DEFINTA-Z:KEYOFF 15 cls:fork=0to24:locate0,k:print"abcdefgabcdefgabcdefgabcdefgabc";:next 20 FORK=0TO55:VPOKE776+K,PEEK(32778+K):NEXT 35 ifinkey$=""goto35 40 cls:fork=0to24:locate0,k:print"ABCDEFGABCDEFGABCDEFGABCDEFGABC";:next 50 poke63779,0:locate8,16:?"¿ÿ¿U¿ÿ¿ÿþÿþUþÿþÿûÿûUûÿûÿïÿïUïÿïÿ'ßWßßWß'äûêûûêûäÿÿÿÿÿÿÿÿ" 60 poke63779,24:REM reset PRINT pointers 65 ifinkey$=""goto65elseend
As you see I used locate to point start address. Infact 16*32=512 (y coordinate)+ 8 (x coordinate)=520. 520/8=65, "A" char
Login or register to post comments