feat(buzbee): initial setup for loading into BUZBEE

This commit is contained in:
2025-09-25 17:16:34 -05:00
parent 59b0fcfa0a
commit 853efd9bac
4 changed files with 58 additions and 4 deletions

View File

@@ -2,5 +2,7 @@ section RESET load 8000
section SERIAL section SERIAL
section MEMTEST section MEMTEST
section BUZBEE
section VECTORS high 100000 section VECTORS high 100000
section VERSION high section VERSION high

17
src/buzbee.inc Normal file
View 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
View 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

View File

@@ -2,9 +2,10 @@
; Copyright (c) 2024-2025 Amber Zeller, Gale Faraday ; Copyright (c) 2024-2025 Amber Zeller, Gale Faraday
; Licensed under MIT ; Licensed under MIT
INCLUDE "buzbee.inc"
INCLUDE "hardware.inc" INCLUDE "hardware.inc"
INCLUDE "serial.inc"
INCLUDE "memtest.inc" INCLUDE "memtest.inc"
INCLUDE "serial.inc"
INCLUDE "version.inc" INCLUDE "version.inc"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -42,6 +43,18 @@ BOOTSCR
POST POST
jsr RAMTEST jsr RAMTEST
HALT ; Hand off control to the BUZBEE monitor and print notification of leaving the
sync ; Halt and wait for interrupts ; firmware
bra HALT ENTERMON
ldx #TXTRUN
jsr POUTZSTR
jmp BUZBEE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Text/Resources for Reset Handler
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
TXTRUN
fcn "<3RUN<3"