-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
de2c93c
commit 6a30ebb
Showing
9 changed files
with
4,092 additions
and
64 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
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
;********************************************************* | ||
; FILE: config.inc | ||
; | ||
; General configuration file for the Corsham Technologies | ||
; CTMON65 monitor. | ||
;********************************************************* | ||
; | ||
; Current version and revision | ||
; | ||
VERSION equ 0 | ||
REVISION equ 1 | ||
; | ||
;FALSE equ 0 | ||
;TRUE equ !FALSE | ||
; | ||
; SS-50 bus constants | ||
; | ||
IO_BASE equ $e000 | ||
IO_SIZE equ 16 | ||
; | ||
; Memory usage | ||
; | ||
ZERO_PAGE_START equ $00f0 | ||
ROM_START equ $f000 | ||
RAM_START equ $df00 | ||
; | ||
; If enabled, turn on buffered input code. | ||
; | ||
BUFFERED_INPUT equ FALSE | ||
; | ||
MAX_ARGC equ 5 | ||
; | ||
; If enabled, the debugger will display the flag register | ||
; in ASCII. Nice, but takes more code. | ||
; | ||
FULL_STATUS equ TRUE | ||
; | ||
; Enable EXTENDED_CMDS to allow linking external commands | ||
; to the command handler. | ||
; | ||
EXTENDED_CMDS equ FALSE | ||
; | ||
; Define to enable SD related functions | ||
; | ||
SD_ENABLED equ TRUE | ||
; | ||
; Size of the keyboard buffer | ||
; | ||
BUFFER_SIZE equ 132 | ||
|
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
;********************************************************* | ||
; FILE: ctmon65.inc | ||
; | ||
; Applications wishing to run under CTMON65 should include | ||
; this file, as it defines vectors and other pieces of | ||
; necessary data. | ||
;********************************************************* | ||
; | ||
include "config.inc" | ||
; | ||
bss | ||
org ROM_START | ||
; | ||
;========================================================= | ||
; Jump table to common functions. The entries in this | ||
; table are used by external programs, so nothing can be | ||
; moved or removed from this table. New entries always | ||
; go at the end. Many of these are internal functions | ||
; and I figured they might be handy for others. | ||
; | ||
RESET ds 3 | ||
WARM ds 3 | ||
; | ||
; These are the major and minor revision numbers so that | ||
; code can check to see which CTMON65 version is running. | ||
; | ||
CTMON65ver ds 1 | ||
CTMON65rev ds 1 | ||
ds 1 ;unused | ||
; | ||
; Console related functions | ||
; | ||
cin ds 3 | ||
cout ds 3 | ||
cstatus ds 3 | ||
putsil ds 3 | ||
getline ds 3 | ||
crlf ds 3 | ||
HexA ds 3 | ||
; | ||
; Low-level functions to access the SD card system | ||
; | ||
if SD_ENABLED | ||
xParInit ds 3 | ||
xParSetWrite ds 3 | ||
xParSetRead ds 3 | ||
xParWriteByte ds 3 | ||
xParReadByte ds 3 | ||
; | ||
; Higher level SD card functions | ||
; | ||
DiskPing ds 3 | ||
DiskDir ds 3 | ||
DiskDirNext ds 3 | ||
DiskOpenRead ds 3 | ||
DiskOpenWrite ds 3 | ||
DiskRead ds 3 | ||
DiskWrite ds 3 | ||
DiskClose ds 3 | ||
endif ;SD_ENABLED | ||
; | ||
org RAM_START | ||
; | ||
; The use of memory starting from here will remain | ||
; constant through different versions of CTMON65. | ||
; | ||
IRQvec ds 2 | ||
NMIvec ds 2 | ||
; | ||
; Before a L(oad) command, these are set to $FF. | ||
; After loading, if they are different, jump to | ||
; that address. | ||
; | ||
AutoRun ds 2 | ||
; | ||
; Pointer to the subroutine that gets the next input | ||
; character. Used for doing disk/console input. | ||
; | ||
inputVector ds 2 | ||
; | ||
; Same thing for output. | ||
; | ||
outputVector ds 2 | ||
; | ||
; Buffer for GETLINE | ||
; | ||
buffer ds BUFFER_SIZE |
Oops, something went wrong.