From be28961b7a2b787ad887b60e35296488305d461f Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Wed, 25 Apr 2018 20:02:32 -0400 Subject: [PATCH] change color scheme. dark blue on black is unreadable. dark green on white is pleasurable. --- main.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/main.c b/main.c index d1f4716..1800d49 100644 --- a/main.c +++ b/main.c @@ -81,27 +81,27 @@ static void screen_init(void) { #define YELLOW 0x0ff0 #define BLACK 0x0000 #define BLUE 0x000f -#define GREEN 0x00f0 +#define GREEN 0x0080 #define RED 0x0f00 static ColorTable ct = { - BLACK, // background + WHITE, // background RED, // underline / blink BLUE, // bold GREEN, // foreground - BLACK, + WHITE, RED, BLUE, GREEN, - BLACK, + WHITE, RED, BLUE, GREEN, - BLACK, + WHITE, RED, BLUE, GREEN, @@ -112,18 +112,17 @@ static void screen_init(void) { // linearize memory, disable shadowing. asm { - lda #0x00C1 + phb + pea 0xe0e0 + plb + plb sep #0x20 - ora >0xe0c029 - sta >0xe0c029 + lda #0xC1 + tsb 0xc029 + lda #0x08 + tsb 0xc035 rep #0x20 - - lda #0x0008 - sep #0x20 - ora >0xe0c035 - sta >0xe0c035 - rep #0x20 - + plb } SetMasterSCB(0xc080);