On Tuesday 27 July 2004 15:28, MagerValp wrote: > TL> Every time I start my compiled program on my C64-emulator the > TL> letters switch to big/small-letters, but I need big-letters and > TL> graphic-signs and I donīt want that you can switch it with the > TL> keyboard after start. > > You control the font with $d018. cc65 changes it to $17, and you can > change it back to $15 with: > > *(unsigned char *)0xd018 = 0x15; > > or the slightly more readable: > > #define Poke(A,X) (*(unsigned char *)A) = (X) > #define Peek(A) (*(unsigned char *)A) > #define PokeW(A,X) (*(unsigned int *)A) = (X) > #define PeekW(A) (*(unsigned int *)A) > > Poke(0xd018, 0x15); and to lock the cbm+shift thing, you need to "print" petscii character number 8 .... something like asm("lda #8\njsr $ffd2\n"); // lock asm("lda #9\njsr $ffd2\n"); // unlock mmmh... you can probably also write to some flag in the (extended) zeropage, but i dont recall what it was :) 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 Tue Jul 27 15:33:55 2004
This archive was generated by hypermail 2.1.8 : 2004-07-27 15:34:03 CEST