/
vdap.def
88 lines (74 loc) · 2.93 KB
/
vdap.def
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
lstoff
if !__VDAP_DEF__
define __VDAP_DEF__
; VDAP constants
; Command sets
defc VDAP_SCS = $10 ; Short command set
defc VDAP_ECS = $11 ; Extended command set
defc VDAP_IPA = $90 ; Input numbers in ASCII
defc VDAP_IPH = $91 ; Input numbers in HEX
; Disk commands
defc VDAP_IDD = $0F ; Identify disk drive
defc VDAP_IDDE = $94 ; Identify disk drive extended
defc VDAP_DSN = $2D ; Display disk serial number
defc VDAP_DVL = $2E ; Display disk volume label
; Directory operations
defc VDAP_DIR = $01 ; Lists the current directory
defc VDAP_CD = $02 ; Change directory
defc VDAP_DLD = $05 ; Delete directory
defc VDAP_MKD = $06 ; Make directory
; File operations
defc VDAP_RD = $04 ; Read file
defc VDAP_RDF = $0B ; Read data from file
defc VDAP_DLF = $07 ; Delete file
defc VDAP_WRF = $08 ; Write file data
defc VDAP_OPW = $09 ; Open file for writing
defc VDAP_OPR = $0E ; Open file for reading
defc VDAP_CLF = $0A ; Close file
defc VDAP_REN = $0C ; Rename file or directory
defc VDAP_FS = $12 ; Free space (only for discs up to 4GB)
defc VDAP_FSE = $93 ; Free space
defc VDAP_SEK = $28 ; Seek in file
defc VDAP_DIRT = $2F ; List specified file and date and time of create, modify and file access
; UART monitor
defc VDAP_SBD = $14 ; Set baud rate
; Power management commands
defc VDAP_SUD = $15 ; Suspend disk when not in use
defc VDAP_WKD = $16 ; Wake disk
defc VDAP_SUM = $17 ; Suspend monitor and stop clocks
; Commands to unused I/O pins
defc VDAP_IOR = $29 ; Read I/O port
defc VDAP_IOW = $2A ; Write I/O port
; Printer class commands
defc VDAP_PGS = $81 ; Get printer status
defc VDAP_PSR = $82 ; Printer soft reset
; USB device commands
defc VDAP_DSD = $83 ; Send data to USB device
defc VDAP_DRD = $84 ; Read data from USB device
defc VDAP_QP1 = $2B ; Query device port 1 status
defc VDAP_QP2 = $2C ; Query device port 2 status
defc VDAP_QD = $85 ; Query device
defc VDAP_SC = $86 ; Set current device
defc VDAP_SF = $87 ; Set device to be FTDI device
; VMSC commands
defc VDAP_VPF = $1D ; Play an MP3 file
defc VDAP_VWR = $1E ; Write to VS1003 command register
defc VDAP_VRD = $1F ; Read from VS1003 command register
defc VDAP_VST = $20 ; Stop playing current track
defc VDAP_V3A = $21 ; Play all tracks with MP3 extension
defc VDAP_VRA = $8A ; Repeatedly play all MP3 files
defc VDAP_VRR = $8F ; Repeatedly plays random MP3 files
defc VDAP_VSF = $25 ; Skip to next track
defc VDAP_VSB = $26 ; Skip to beginning of current track
defc VDAP_VSD = $8E ; Skip forward one whole directory
defc VDAP_VP = $8B ; Pause playback
defc VDAP_VF = $8C ; Fast forward 5 seconds
defc VDAP_VB = $8D ; Rewind 5 seconds
defc VDAP_VSV = $88 ; Sets playback volume
; Debug commands
defc VDAP_SD = $03 ; Sector dump
defc VDAP_SW = $92 ; Sector write
defc VDAP_FWV = $13 ; Get firmware versions
defc VDAP_FWU = $95 ; Upgrade firmware from named file on disk
endif
lston