feat(buzbee): initial setup for loading into BUZBEE
This commit is contained in:
17
src/buzbee.inc
Normal file
17
src/buzbee.inc
Normal file
@@ -0,0 +1,17 @@
|
||||
; CHIBI PC-09 Machine Language Monitor -- BUZBEE Header
|
||||
; Copyright (c) 2025 Gale Faraday
|
||||
; Licensed under MIT
|
||||
|
||||
; vim: ft=asm
|
||||
|
||||
BUZBEE IMPORT
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;; BUZBEE Structures
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
BBVARS STRUCT
|
||||
INPUT rmb $7F
|
||||
ENDSTRUCT
|
22
src/buzbee.s
Normal file
22
src/buzbee.s
Normal file
@@ -0,0 +1,22 @@
|
||||
; CHIBI PC-09 Machine Language Monitor -- BUZBEE
|
||||
; Copyright (c) 2025 Gale Faraday
|
||||
; Licensed under MIT
|
||||
|
||||
INCLUDE "serial.inc"
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;; BUZBEE Machine Language Monitor for CHIBI PC-09
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
SECTION BUZBEE
|
||||
|
||||
EXPORT BUZBEE
|
||||
|
||||
BUZBEE
|
||||
jsr INITBBVARS
|
||||
|
||||
|
||||
INITBBVARS
|
||||
|
21
src/reset.s
21
src/reset.s
@@ -2,9 +2,10 @@
|
||||
; Copyright (c) 2024-2025 Amber Zeller, Gale Faraday
|
||||
; Licensed under MIT
|
||||
|
||||
INCLUDE "buzbee.inc"
|
||||
INCLUDE "hardware.inc"
|
||||
INCLUDE "serial.inc"
|
||||
INCLUDE "memtest.inc"
|
||||
INCLUDE "serial.inc"
|
||||
INCLUDE "version.inc"
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -42,6 +43,18 @@ BOOTSCR
|
||||
POST
|
||||
jsr RAMTEST
|
||||
|
||||
HALT
|
||||
sync ; Halt and wait for interrupts
|
||||
bra HALT
|
||||
; Hand off control to the BUZBEE monitor and print notification of leaving the
|
||||
; firmware
|
||||
ENTERMON
|
||||
ldx #TXTRUN
|
||||
jsr POUTZSTR
|
||||
jmp BUZBEE
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;
|
||||
;; Text/Resources for Reset Handler
|
||||
;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
TXTRUN
|
||||
fcn "<3RUN<3"
|
||||
|
Reference in New Issue
Block a user