SDFS 2.08 KB
Newer Older
Ben Avison's avatar
Ben Avison committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
;
; CDDL HEADER START
;
; The contents of this file are subject to the terms of the
; Common Development and Distribution License (the "Licence").
; You may not use this file except in compliance with the Licence.
;
; You can obtain a copy of the licence at
; cddl/RiscOS/Sources/FileSys/SDFS/SDFS/LICENCE.
; See the Licence for the specific language governing permissions
; and limitations under the Licence.
;
; When distributing Covered Code, include this CDDL HEADER in each
; file and include the Licence file. If applicable, add the
; following below this CDDL HEADER, with the fields enclosed by
; brackets "[]" replaced with your own identifying information:
; Portions Copyright [yyyy] [name of copyright owner]
;
; CDDL HEADER END
;
; Copyright 2012 Ben Avison.  All rights reserved.
; Use is subject to license terms.
;

        SUBT    Exported SDFS constants

OldOpt  SETA    {OPT}
        OPT     OptNoList+OptNoP1List

; SWIs

SWIClass        SETS    SDFSSWI_Name

        ; SWIs that map onto FileCore ones

        ^       SDFSSWI_Base

        AddSWI  DiscOp                  ; &59040
        AddSWI  NOP01                   ; &59041 Create
        AddSWI  Drives                  ; &59042
        AddSWI  FreeSpace               ; &59043
        AddSWI  NOP04                   ; &59044 FloppyStructure
        AddSWI  DescribeDisc            ; &59045
        AddSWI  NOP06                   ; &59046 DiscardReadSectorsCache
        AddSWI  NOP07                   ; &59047 DiscFormat
        AddSWI  NOP08                   ; &59048 LayoutStructure
        AddSWI  MiscOp                  ; &59049
        AddSWI  SectorDiscOp            ; &5904A
        AddSWI  FreeSpace64             ; &5904B
        AddSWI  DiscOp64                ; &5904C
        AddSWI  NOP13                   ; &5904D Features

        ; SWIs SDFS implements itself

        ^       SDFSSWI_Base + &20

        AddSWI  ReadCardInfo            ; &59060

        ; Reason codes to ReadCardInfo
                        ^       0
SDFSReadCardInfo_Size   #       1
62
SDFSReadCardInfo_Location #     1
Ben Avison's avatar
Ben Avison committed
63 64 65

        OPT     OldOpt
        END