-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
167 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
; Troy's HBC-56 - BASIC | ||
; | ||
; Copyright (c) 2021 Troy Schrapel | ||
; | ||
; This code is licensed under the MIT license | ||
; | ||
; https://github.com/visrealm/hbc-56 | ||
; | ||
|
||
|
||
!src "basic_hbc56_core.asm" ; core basic | ||
|
||
!src "drivers/input_uart.asm" ; input routines | ||
!src "drivers/output_uart.asm" ; output routines | ||
|
||
|
||
; ----------------------------------------------------------------------------- | ||
; metadata for the HBC-56 kernel | ||
; ----------------------------------------------------------------------------- | ||
hbc56Meta: | ||
+setHbcMetaTitle "HBC-56 BASIC" | ||
+setHbcMetaNoWait | ||
rts | ||
; Troy's HBC-56 - BASIC | ||
; | ||
; Copyright (c) 2021 Troy Schrapel | ||
; | ||
; This code is licensed under the MIT license | ||
; | ||
; https://github.com/visrealm/hbc-56 | ||
; | ||
|
||
|
||
!src "basic_hbc56_core.asm" ; core basic | ||
|
||
!src "drivers/input_uart.asm" ; input routines | ||
!src "drivers/output_uart.asm" ; output routines | ||
|
||
|
||
; ----------------------------------------------------------------------------- | ||
; metadata for the HBC-56 kernel | ||
; ----------------------------------------------------------------------------- | ||
hbc56Meta: | ||
+setHbcMetaTitle "HBC-56 BASIC" | ||
+setHbcMetaNoWait | ||
rts | ||
|
||
|
||
!src "functions/basic_functions.asm" ; custom functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
; Troy's HBC-56 - BASIC - Output (UART) | ||
; | ||
; Copyright (c) 2021 Troy Schrapel | ||
; | ||
; This code is licensed under the MIT license | ||
; | ||
; https://github.com/visrealm/hbc-56 | ||
; | ||
|
||
; ----------------------------------------------------------------------------- | ||
; hbc56SetupDisplay - Setup the display (UART) | ||
; ----------------------------------------------------------------------------- | ||
hbc56SetupDisplay: | ||
sei | ||
jsr uartInit | ||
+tmsDisableInterrupts | ||
+setIntHandler uartIrq | ||
rts | ||
|
||
; ----------------------------------------------------------------------------- | ||
; hbc56Out - EhBASIC output subroutine (for HBC-56 TMS9918) | ||
; ----------------------------------------------------------------------------- | ||
; Inputs: A - ASCII character (or code) to output | ||
; Outputs: A - must be maintained | ||
; ----------------------------------------------------------------------------- | ||
hbc56Out: | ||
jmp uartOut | ||
|
||
; Troy's HBC-56 - BASIC - Output (UART) | ||
; | ||
; Copyright (c) 2021 Troy Schrapel | ||
; | ||
; This code is licensed under the MIT license | ||
; | ||
; https://github.com/visrealm/hbc-56 | ||
; | ||
|
||
; ----------------------------------------------------------------------------- | ||
; hbc56SetupDisplay - Setup the display (UART) | ||
; ----------------------------------------------------------------------------- | ||
hbc56SetupDisplay: | ||
sei | ||
jsr uartInit | ||
cli | ||
rts | ||
|
||
; ----------------------------------------------------------------------------- | ||
; hbc56Out - EhBASIC output subroutine (for HBC-56 TMS9918) | ||
; ----------------------------------------------------------------------------- | ||
; Inputs: A - ASCII character (or code) to output | ||
; Outputs: A - must be maintained | ||
; ----------------------------------------------------------------------------- | ||
hbc56Out: | ||
jmp uartOut | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ basicDisplay: | |
asl | ||
tax | ||
jsr doMode | ||
+tmsEnableOutput | ||
|
||
lda BASIC_COLOR | ||
jsr tmsInitColorTable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,6 +137,8 @@ hbc56Tms9918Int: | |
|
||
@endConsoleCallback | ||
|
||
} | ||
|
||
.nullCallbackFunction: | ||
rts | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.