On Wednesday 22 September 2004 15:57, Spiro Trikaliotis wrote: > using what Greg King wrote, using > > VIC+0x18 &= ~0x02 (for uppercase) > VIC+0x18 |= 0x02 (for lowercase) > > (in whatever form you want to write VIC+0x18; I prefer Greg's original > format: > #include <c64.h> > VIC.addr &= ~(unsigned char)0x02; /* upper/graphics char. display */ > VIC.addr |= (unsigned char)0x02; /* lower/upper char. display */ > ) > > would solve this issue, regardless of the content of the VIC register. > This approach only depends on the lowercase character set being located > after the uppercase one. what if the two charsets arent located after each other in memory? (i know, purely hypothetical). IMHO some kind of constant should be used here, let it be just for improved readability. gpz ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Wed Sep 22 16:09:34 2004
This archive was generated by hypermail 2.1.8 : 2004-09-22 16:09:42 CEST