One of the most useful POKE commands for the unexpanded VIC-20 is POKE 36869,255. By modifying this pointer of the VIC chip you are telling it to replace the screen POKE characters 0-63 with the data contained between 7168 to 7679.
And even if you modify letters of the alphabet, you can still display these characters by printing those characters in reverse mode. Hence, characters 128-255 will show up as non-reversed characters on the screen.
First, you should reserve the last 512 bytes of memory:
10 POKE52,28:poke56,28:CLR
28 times 256 is 7168. If you only plan on using 31 custom characters or less, you save yourself 256 bytes by only reserving the last 256 bytes of memory.
10 POKE52,29:poke56,29:CLR
29 times 256 is 7424. So you'll be using the RAM between 7424 and 7679.
Screen character 32 is the space character, don't forget to fill 7424-7431 with 0s to make sure that the screen doesn't look funny when you clear it!
Here I will create a few custom characters contained in DATA statements
20 DATA 32,32,32,32,32,32,32,32
30 DATA 255,255,255,255,255,255,255,255
40 DATA 0,60,66,66,66,66,60,0
Now I will POKE them into memory
50 FOR X=0 TO 23:READ Y: POKE X+7424,Y: NEXT
Now I will PRINT the characters to the screen
60 PRINT"{CLR}{SPACE}!"CHR$(34)
65 PRINT"{REV-ON}{SPACE}!"CHR$(34)
And finally, a little routine that toggles between 255 and 240 in POKE 36869:
70 POKE36869,240
80 GET A$:IF A$="" THEN 80
90 POKE36869,255
100 GETA$:IF A$="" THEN 100
110 GOTO 70
Now when you run this program, you can see between the differences between the 240 and 255 modes in POKE 36869!!! *
(*) I suspect that 99% of you already knew this, but this being a retrocomputing message board I just decided to have a little fun and pretend I was writing an article for the old computer magazines from the early 1980s.
POKE 36869,255 (Unexpanded VIC-20)
Moderator: Moderators
POKE 36869,255 (Unexpanded VIC-20)
"A slave is one who waits for someone to come and free him." -- Ezra Pound
Hi Jeff, I remember your newsletter from 8 years ago! I did send you a few programs on a disk, but then my landlady kicked me out and I had to move.... so I never got more than 1 issue. I assume that you must have sent it to my old address.
I did get issue #2 (or a photocopy of it) from Ward Shrake (if you're reading this, thank you very much for sending it). I'm just wondering, did you publish other issues after #2?
I did get issue #2 (or a photocopy of it) from Ward Shrake (if you're reading this, thank you very much for sending it). I'm just wondering, did you publish other issues after #2?
"A slave is one who waits for someone to come and free him." -- Ezra Pound