feat(utils): add integrity module

This commit is contained in:
2025-10-15 16:51:41 -05:00
parent 23febee616
commit 1ebd112da5
2 changed files with 18 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ section BBHASHES
; Utility functions ; Utility functions
section MEMTEST load 8800 section MEMTEST load 8800
section INTEGRITY
; Static data ; Static data
section VECTORS high 100000 section VECTORS high 100000

View File

@@ -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 ; Copyright (c) 2024-2025 Amber Zeller, Gale Faraday
; Licensed under MIT ; Licensed under MIT
INCLUDE "hardware.inc" INCLUDE "hardware.inc"
INCLUDE "serial.inc" INCLUDE "serial.inc"
INCLUDE "version.inc"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
@@ -58,3 +59,18 @@ LOOP@
MSG_FINISH MSG_FINISH
fcc "Memory test finished! Please reset" fcc "Memory test finished! Please reset"
fcb $0D,$0A,$00 fcb $0D,$0A,$00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; CHIBI PC-09 Integrity Functions
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SECTION INTEGRITY
EXPORT PRINTVER
; Prints the ROM's version string
PRINTVER
PZSTR VERMSG
rts