aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.asm
diff options
context:
space:
mode:
authoruser <user@clank>2026-07-18 00:31:27 +0200
committeruser <user@clank>2026-07-18 00:31:27 +0200
commit391833f8c611a206ed8d3f8483356a42e9890aa9 (patch)
tree23ac1e5bc5937c48010062e2b0f9d51375881886 /src/term.asm
parentirc: keep the keyboard live during RX floods (poll input every pass) (diff)
downloadgbos-391833f8c611a206ed8d3f8483356a42e9890aa9.tar.gz
gbos-391833f8c611a206ed8d3f8483356a42e9890aa9.tar.xz
gbos-391833f8c611a206ed8d3f8483356a42e9890aa9.zip
term: dark mode - black background, white text (OSK highlight inverts to match)
Diffstat (limited to 'src/term.asm')
-rw-r--r--src/term.asm18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/term.asm b/src/term.asm
index 64e45aa..099ca0a 100644
--- a/src/term.asm
+++ b/src/term.asm
@@ -53,20 +53,24 @@ term_init::
ld [rSCX], a
ld [rSCY], a
- ; BG palette 0: color0 = white (bg), color1 = black (text)
+ ; BG palette 0: color0 = black (bg), color1 = white (text) - dark terminal
ld a, $80
ld [rBCPS], a
- ld a, $FF
- ld [rBCPD], a
- ld a, $7F
- ld [rBCPD], a
xor a
ld [rBCPD], a
+ ld [rBCPD], a ; c0 = $0000 black (background)
+ ld a, $FF
ld [rBCPD], a
+ ld a, $7F
+ ld [rBCPD], a ; c1 = $7FFF white (text)
+ ld a, $FF
ld [rBCPD], a
+ ld a, $7F
+ ld [rBCPD], a ; c2 = white
+ ld a, $FF
ld [rBCPD], a
- ld [rBCPD], a
- ld [rBCPD], a
+ ld a, $7F
+ ld [rBCPD], a ; c3 = white
; state: assign[sr]=sr, cursor at 0,0 (on)
ld hl, wAssign