diff --git a/linkscript b/linkscript index a9bd10b..621478d 100644 --- a/linkscript +++ b/linkscript @@ -8,6 +8,7 @@ section BBHASHES ; Utility functions section MEMTEST load 8800 +section INTEGRITY ; Static data section VECTORS high 100000 diff --git a/src/utils.s b/src/utils.s index 5538de6..a433dc8 100644 --- a/src/utils.s +++ b/src/utils.s @@ -1,9 +1,10 @@ -; CHIBI PC-09 Prototype #1 Boot ROM -- Memory Testing Routines +; CHIBI PC-09 Prototype #1 Boot ROM -- BIOS Utilities ; Copyright (c) 2024-2025 Amber Zeller, Gale Faraday ; Licensed under MIT INCLUDE "hardware.inc" INCLUDE "serial.inc" + INCLUDE "version.inc" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; @@ -58,3 +59,18 @@ LOOP@ MSG_FINISH fcc "Memory test finished! Please reset" fcb $0D,$0A,$00 + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; +;; CHIBI PC-09 Integrity Functions +;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + + SECTION INTEGRITY + + EXPORT PRINTVER + +; Prints the ROM's version string +PRINTVER + PZSTR VERMSG + rts