1 |
15 |
robfinch |
; ============================================================================
|
2 |
|
|
; __
|
3 |
|
|
; \\__/ o\ (C) 2013-2022 Robert Finch, Waterloo
|
4 |
|
|
; \ __ / All rights reserved.
|
5 |
|
|
; \/_// robfinch@opencores.org
|
6 |
|
|
; ||
|
7 |
|
|
;
|
8 |
|
|
;
|
9 |
|
|
; BSD 3-Clause License
|
10 |
|
|
; Redistribution and use in source and binary forms, with or without
|
11 |
|
|
; modification, are permitted provided that the following conditions are met:
|
12 |
|
|
;
|
13 |
|
|
; 1. Redistributions of source code must retain the above copyright notice, this
|
14 |
|
|
; list of conditions and the following disclaimer.
|
15 |
|
|
;
|
16 |
|
|
; 2. Redistributions in binary form must reproduce the above copyright notice,
|
17 |
|
|
; this list of conditions and the following disclaimer in the documentation
|
18 |
|
|
; and/or other materials provided with the distribution.
|
19 |
|
|
;
|
20 |
|
|
; 3. Neither the name of the copyright holder nor the names of its
|
21 |
|
|
; contributors may be used to endorse or promote products derived from
|
22 |
|
|
; this software without specific prior written permission.
|
23 |
|
|
;
|
24 |
|
|
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
25 |
|
|
; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
26 |
|
|
; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
27 |
|
|
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
28 |
|
|
; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
29 |
|
|
; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
30 |
|
|
; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
31 |
|
|
; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
32 |
|
|
; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
33 |
|
|
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
34 |
|
|
;
|
35 |
|
|
; ============================================================================
|
36 |
|
|
;
|
37 |
|
|
CR EQU $0D ;ASCII equates
|
38 |
|
|
LF EQU $0A
|
39 |
|
|
TAB EQU $09
|
40 |
|
|
CTRLC EQU $03
|
41 |
|
|
CTRLH EQU $08
|
42 |
|
|
CTRLI EQU $09
|
43 |
|
|
CTRLJ EQU $0A
|
44 |
|
|
CTRLK EQU $0B
|
45 |
|
|
CTRLM EQU $0D
|
46 |
|
|
CTRLS EQU $13
|
47 |
|
|
CTRLT EQU $14
|
48 |
|
|
CTRLX EQU $18
|
49 |
|
|
XON EQU $11
|
50 |
|
|
XOFF EQU $13
|
51 |
|
|
|
52 |
|
|
FIRST_CORE EQU 1
|
53 |
|
|
MAX_TASKNO EQU 63
|
54 |
|
|
DRAM_BASE EQU $10000000
|
55 |
|
|
|
56 |
|
|
; ROM monitor functions
|
57 |
|
|
;
|
58 |
|
|
MF_Monitor EQU 0
|
59 |
|
|
MF_INCH EQU 1
|
60 |
|
|
MF_OUTCH EQU 2
|
61 |
|
|
MF_CRLF EQU 3
|
62 |
|
|
MF_DisplayString EQU 4
|
63 |
|
|
MF_DisplayByteAsHex EQU 5
|
64 |
|
|
MF_DisplayWordAsHex EQU 6
|
65 |
|
|
MF_ShowSprites EQU 7
|
66 |
|
|
MF_Srand EQU 8
|
67 |
|
|
MF_Random EQU 9
|
68 |
|
|
MF_OSCALL EQU 10
|
69 |
|
|
MF_GetRange EQU 11
|
70 |
|
|
|
71 |
|
|
mon_numwka EQU $910
|
72 |
|
|
mon_r1 EQU $920
|
73 |
|
|
mon_r2 EQU $924
|