mirror of
https://github.com/ksherlock/marlene.git
synced 2024-12-22 13:29:18 +00:00
change color scheme. dark blue on black is unreadable. dark green on white is pleasurable.
This commit is contained in:
parent
b9109f5515
commit
be28961b7a
29
main.c
29
main.c
@ -81,27 +81,27 @@ static void screen_init(void) {
|
|||||||
#define YELLOW 0x0ff0
|
#define YELLOW 0x0ff0
|
||||||
#define BLACK 0x0000
|
#define BLACK 0x0000
|
||||||
#define BLUE 0x000f
|
#define BLUE 0x000f
|
||||||
#define GREEN 0x00f0
|
#define GREEN 0x0080
|
||||||
#define RED 0x0f00
|
#define RED 0x0f00
|
||||||
|
|
||||||
static ColorTable ct =
|
static ColorTable ct =
|
||||||
{
|
{
|
||||||
BLACK, // background
|
WHITE, // background
|
||||||
RED, // underline / blink
|
RED, // underline / blink
|
||||||
BLUE, // bold
|
BLUE, // bold
|
||||||
GREEN, // foreground
|
GREEN, // foreground
|
||||||
|
|
||||||
BLACK,
|
WHITE,
|
||||||
RED,
|
RED,
|
||||||
BLUE,
|
BLUE,
|
||||||
GREEN,
|
GREEN,
|
||||||
|
|
||||||
BLACK,
|
WHITE,
|
||||||
RED,
|
RED,
|
||||||
BLUE,
|
BLUE,
|
||||||
GREEN,
|
GREEN,
|
||||||
|
|
||||||
BLACK,
|
WHITE,
|
||||||
RED,
|
RED,
|
||||||
BLUE,
|
BLUE,
|
||||||
GREEN,
|
GREEN,
|
||||||
@ -112,18 +112,17 @@ static void screen_init(void) {
|
|||||||
// linearize memory, disable shadowing.
|
// linearize memory, disable shadowing.
|
||||||
asm
|
asm
|
||||||
{
|
{
|
||||||
lda #0x00C1
|
phb
|
||||||
|
pea 0xe0e0
|
||||||
|
plb
|
||||||
|
plb
|
||||||
sep #0x20
|
sep #0x20
|
||||||
ora >0xe0c029
|
lda #0xC1
|
||||||
sta >0xe0c029
|
tsb 0xc029
|
||||||
|
lda #0x08
|
||||||
|
tsb 0xc035
|
||||||
rep #0x20
|
rep #0x20
|
||||||
|
plb
|
||||||
lda #0x0008
|
|
||||||
sep #0x20
|
|
||||||
ora >0xe0c035
|
|
||||||
sta >0xe0c035
|
|
||||||
rep #0x20
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SetMasterSCB(0xc080);
|
SetMasterSCB(0xc080);
|
||||||
|
Loading…
Reference in New Issue
Block a user