aboutsummaryrefslogtreecommitdiff
path: root/basics
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-23 13:59:43 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-02-04 22:00:06 +0100
commit772ae5e0ba662ca0b75b51d29cf09f57e57f5d5a (patch)
tree37f963f55cce54b574e0304623c6811b3ae30c49 /basics
parent0aefffacb5cb08202f7ba53b6e3b9a7303b1d66e (diff)
downloadcode.nes-772ae5e0ba662ca0b75b51d29cf09f57e57f5d5a.tar.gz
code.nes-772ae5e0ba662ca0b75b51d29cf09f57e57f5d5a.zip
Don't leave segments empty
Otherwise we will get a warning from nasm. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'basics')
-rw-r--r--basics/chr-ram.s11
-rw-r--r--basics/unrom.s9
2 files changed, 20 insertions, 0 deletions
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,