From 772ae5e0ba662ca0b75b51d29cf09f57e57f5d5a Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 23 Jan 2025 13:59:43 +0100 Subject: Don't leave segments empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we will get a warning from nasm. Signed-off-by: Miquel Sabaté Solà --- basics/chr-ram.s | 11 +++++++++++ basics/unrom.s | 9 +++++++++ 2 files changed, 20 insertions(+) diff --git a/basics/chr-ram.s b/basics/chr-ram.s index 9c29ac1..20e1b30 100644 --- a/basics/chr-ram.s +++ b/basics/chr-ram.s @@ -32,11 +32,22 @@ chr: .incbin "../assets/basic.chr" .segment "BANK1" +.byte $00 + .segment "BANK2" +.byte $00 + .segment "BANK3" +.byte $00 + .segment "BANK4" +.byte $00 + .segment "BANK5" +.byte $00 + .segment "BANK6" +.byte $00 ;;; ;; Just like in the `basics/unrom.s` example, we use the fixed bank for the core diff --git a/basics/unrom.s b/basics/unrom.s index c6e9fd8..b6deb4d 100644 --- a/basics/unrom.s +++ b/basics/unrom.s @@ -69,10 +69,19 @@ hello_bank1: ;; The rest of the banks are simply not used by this example. .segment "BANK2" +.byte $00 + .segment "BANK3" +.byte $00 + .segment "BANK4" +.byte $00 + .segment "BANK5" +.byte $00 + .segment "BANK6" +.byte $00 ;;; ;; And the following code is "fixed". That is, it is stored at $C000-$FFFF, -- cgit v1.2.3