From 7bdc299e618a1bc7aa816156d352601e68b49ffd Mon Sep 17 00:00:00 2001 From: david Date: Tue, 9 Jun 2009 09:51:19 +0200 Subject: [PATCH] o change font color --- snes/fatfstest/debug.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/snes/fatfstest/debug.c b/snes/fatfstest/debug.c index 5d61773..5295008 100644 --- a/snes/fatfstest/debug.c +++ b/snes/fatfstest/debug.c @@ -33,13 +33,23 @@ void debug_enable(void){ setCharacterLocation(0x5000, (byte) 0); *(byte*) 0x2100 = 0x0f; // enable background - // hex(24 << 10 | 24 << 5 | 24 ) - // '0x6318' - - *(byte*) 0x2121 = 0x00; + // Font Color + // hex(24 << 10 | 24 << 5 | 24 ) = '0x6318' + *(byte*) 0x2121 = 0x02; *(byte*) 0x2122 = 0x18; *(byte*) 0x2122 = 0x63; + // Font Border Color + *(byte*) 0x2121 = 0x00; + *(byte*) 0x2122 = 0x00; + *(byte*) 0x2122 = 0x00; + + // Background Color + //hex( 32 << 10 | 10 << 5 | 10) = '0x814a' + *(byte*) 0x2121 = 0x01; + *(byte*) 0x2122 = 0x4a; + *(byte*) 0x2122 = 0x81; + }