Blob Blame History Raw
From 915836b3ec888445eb290f61456a4e23f947bc6a Mon Sep 17 00:00:00 2001
From: Fabrizio Caruso <fabrizio_caruso@hotmail.com>
Date: Sun, 6 Oct 2019 13:00:37 +0200
Subject: [PATCH 050/170] Improve init code readability

---
 cfg/supervision.cfg       | 2 +-
 libsrc/supervision/crt0.s | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cfg/supervision.cfg b/cfg/supervision.cfg
index 6a71f468..95f04976 100644
--- a/cfg/supervision.cfg
+++ b/cfg/supervision.cfg
@@ -19,7 +19,7 @@ SEGMENTS {
     CODE:     load = ROM,            type = ro,  define   = yes;
     RODATA:   load = ROM,            type = ro,  define   = yes;
     DATA:     load = ROM, run = RAM, type = rw,  define   = yes;
-    FFF0:     load = ROM,            type = ro,  offset   = $7FEA;
+    FFEA:     load = ROM,            type = ro,  offset   = $7FEA;
     VECTOR:   load = ROM,            type = ro,  offset   = $7FFA;
     BSS:      load = RAM,            type = bss, define   = yes;
 }
diff --git a/libsrc/supervision/crt0.s b/libsrc/supervision/crt0.s
index ab147efb..a474cfbe 100644
--- a/libsrc/supervision/crt0.s
+++ b/libsrc/supervision/crt0.s
@@ -65,12 +65,12 @@ not_dma:
 .endproc
 
 ; Removing this segment gives only a warning.
-        .segment "FFF0"
+        .segment "FFEA"
 .proc reset32kcode
         lda     #$A0
         sta     lcd_width
         sta     lcd_height
-        lda     #$C9
+        lda     #(6<<5) | SV_LCD_ON | SV_NMI_ENABLE_ON 
         sta     sv_bank
 ; Now, the 32Kbyte image can reside in the top of 64Kbyte and 128Kbyte ROMs.
         jmp     reset
-- 
2.26.0