Subversion Repositories Spectranet

[/] [trunk/] [rom/] [utilrom.asm] - Blame information for rev 117

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 73 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
; The Utility ROM
24
 
25
; These routines live in page 1 of flash, and run when page 1 is paged
26
; into paging area B (0x2000-0x2FFF)
27
 
28
        org 0x2000
29 93 winston
        include "spectranet.asm"
30 89 winston
 
31 93 winston
; temporary!
32 89 winston
        define SOCK_DGRAM 2
33 117 winston
        define SOCK_STREAM 1
34 89 winston
 
35
        org 0x2000
36
        defb 0xAA
37
        defb 0x55
38 95 winston
        defw F_inetinit                 ; RESET vector
39 97 winston
        defw 0xFFFF                     ; RST8 vector
40
        defw 0xFFFF                     ; INT vector
41
        defw F_nmihandler               ; NMI vector
42 89 winston
        defw 0xFFFF
43
        defw 0xFFFF
44
        defw 0xFFFF
45
 
46 95 winston
        include "inetinit.asm"          ; Initializes inet settings
47 77 winston
        include "dhcpclient.asm"        ; DHCP client
48 97 winston
        include "utilnmi.asm"           ; NMI handler
49 89 winston
        include "dhcpdefs.asm"
50 93 winston
        include "sockdefs.asm"
51 95 winston
        include "sysvars.sym"
52
        include "flashconf.asm"         ; defines for configuration memory
53 97 winston
CONFIGUTIL_START
54 112 winston
        incbin "configutilrom.out"      ; Configuration utility image
55 97 winston
CONFIGUTIL_END
56 89 winston
;       include "ui_config.asm"         ; configuration user interface
57 117 winston
        include "ui_menu.asm"           ; simple menu generator
58 73 winston
 
59 89 winston
;fwstart
60
;       incbin "flashwrite.out"         ; this gets LDIR'd to RAM
61
;fwend
62 73 winston