feat(utils): add integrity module
This commit is contained in:
@@ -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
|
||||||
|
18
src/utils.s
18
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
|
; 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
|
||||||
|
Reference in New Issue
Block a user