Subversion Repositories Spectranet

[/] [trunk/] [rom/] [tnfs_vectors.asm] - Blame information for rev 288

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

Line No. Rev Author Line
1 215 winston
;The MIT License
2
;
3
;Copyright (c) 2009 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
sig     defb 0xAA               ; This is a ROM module
24 288 winston
romid   defb 0xFF               ; for a filesystem only.
25 215 winston
reset   defw F_init             ; reset vector
26
mount   defw F_tnfs_mount       ; The mount routine
27
        defw 0xFFFF
28
        defw 0xFFFF
29
        defw 0xFFFF
30
        defw 0xFFFF
31
idstr   defw STR_ident          ; ROM identity string
32 265 winston
modcall jp F_modcall            ; No modcall code
33 215 winston
 
34
; The VFS table. This is a jump table for all the VFS entry points.
35
; Only some are implemented, the rest point to a routine that returns
36
; an error.
37
        jp F_tnfs_umount        ; Unmount routine
38
        jp F_tnfs_opendir       ; Open a directory
39
        jp F_tnfs_open          ; Open a file
40
        jp F_tnfs_unlink        ; Unlink - delete a file
41
        jp F_tnfs_mkdir         ; Mkdir - Create a directory
42
        jp F_tnfs_rmdir         ; Rmdir - Delete a directory
43
        jp F_tnfs_size          ; Filesystem size
44
        jp F_tnfs_free          ; Filesystem free space
45
        jp F_tnfs_stat          ; Filesystem 'stat' info
46
        jp F_tnfs_chmod         ; Change mode (permissions)
47
        jp F_tnfs_read          ; Read a file
48
        jp F_tnfs_write         ; Write to a file
49 224 winston
        jp F_tnfs_lseek         ; Seek to a position in a file
50 215 winston
        jp F_tnfs_close         ; Close a file
51
        jp F_undef              ; Poll - not implemented
52
        jp F_tnfs_readdir       ; Read a directory entry
53
        jp F_tnfs_closedir      ; Close a directory
54
        jp F_tnfs_chdir         ; Change directory
55 279 winston
        jp F_tnfs_getcwd        ; get current directory
56 285 winston
        jp F_tnfs_rename        ; rename
57 215 winston
 
58
STR_ident
59
        defb "TNFS 1.0",0
60
 
61
F_tnfs_size                     ; TODO functions
62
F_tnfs_free
63
F_undef
64
        ld a, ENOSYS            ; Function not implemented
65
        scf
66
        ret