Subversion Repositories Spectranet

[/] [branches/] [gnubinutils/] [include/] [sysdefs.inc] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 379 winston
;The MIT License
2
;
3
;Copyright (c) 2008 Dylan Smith
4
;
5
;Permission is hereby granted, free of charge, to any person obtaining a copy
6
;of this software and associated documentation files (the "Software"), to deal
7
;in the Software without restriction, including without limitation the rights
8
;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
;copies of the Software, and to permit persons to whom the Software is
10
;furnished to do so, subject to the following conditions:
11
;
12
;The above copyright notice and this permission notice shall be included in
13
;all copies or substantial portions of the Software.
14
;
15
;THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
;THE SOFTWARE.
22
 
23
; Sysdefs.asm
24
;
25
; Miscellaneous system defines.
26
;
27
TRAPSET         equ 0x023B      ; CPLD programmable trap (write only)
28
PAGEA           equ 0x003B      ; CPLD page area A 4k page (8 bit) (wo)
29
PAGEB           equ 0x013B      ; CPLD page area B 4k page (8 bit) (wo)
30
;CTRLREG                equ 0x033B      ; CPLD control register (rw)
31
 
32
; Control register bit mask
33
MASK_PAGEIN     equ 1           ; I/O pagein (read/write)
34
MASK_EXECTRAP   equ 2           ; Execution trap (read only) 1 if true
35
MASK_CALLTRAP   equ 4           ; Call trap (read only) 1 if true
36
MASK_PROGTRAP_EN equ 8          ; Programmable trap enabled (r/w) 1 if true
37
 
38
; ...and bit positions
39
BIT_PAGEIN      equ 0
40
BIT_EXECTRAP    equ 1
41
BIT_CALLTRAP    equ 2
42
BIT_PROGTRAP_EN equ 3
43
 
44
; Initialization stack - until the Spectrum has initialized its main
45
; ROM we don't really know what we have, but there's definitely some
46
; RAM here.
47
INITSTACK       equ 0xFFFF
48
 
49
; Vectors in flash rom pages
50
ROM_INIT_VECTOR equ 0x2002
51
MOUNT_VECTOR    equ 0x2004
52
INT_VECTOR      equ 0x2006
53
NMI_VECTOR      equ 0x2008
54
BASSTART_VECTOR equ 0x200A
55
RESRVD4_VECTOR  equ 0x200C
56
RESRVD5_VECTOR  equ 0x200E
57
 
58
; Page definitions
59
LOWEST_PAGE     equ 0xC1
60
 
61 384 winston
DATAROM         equ 0x01
62
UTILROM         equ 0x02