📄 ata_wc.lst
字号:
00176
00000085 00177 trisa equ 0x85 ;porta data direction register
00000086 00178 trisb equ 0x86 ;portb data direction register
00000087 00179 trisc equ 0x87 ;portc data direction register
00000088 00180 trisd equ 0x88 ;portd data direction register
00000089 00181 trise equ 0x89 ;porte data direction register
0000008C 00182 pie1 equ 0x8c ;Periheral interrupt enable register
00183
00184 ;pie1 bits ----------------------
00000000 00185 tmr1ie equ 0x00 ;Timer1 overflow interrupt enable
00000001 00186 tmr2ie equ 0x01 ;Timer2 to PR2 match interrupt enable
00000002 00187 ccp1ie equ 0x02 ;CCP1 interrupt enable
00000003 00188 sspie equ 0x03 ;SSP interrupt enable
00000004 00189 txie equ 0x04 ;USART tx interrupt enable
00000005 00190 rcie equ 0x05 ;USART rx interrupt enable
00000006 00191 adie equ 0x06 ;ADC interrupt enable
00000007 00192 pspie equ 0x07 ;Parallel slave port r/w interrupt enable
00193 ;--------------------------------
00194
0000008D 00195 pie2 equ 0x8d ;Peripheral interrupts enable
00196
00197 ;pie2 bits ----------------------
00000000 00198 ccp2ie equ 0x00 ;CCP2 interrupt enable
00000003 00199 bclie equ 0x03 ;bus collision interrupt enable
00000004 00200 eeie equ 0x04 ;EEPROM write operation interrupt enable
00201 ;--------------------------------
00202
MPASM 4.00 Released ATA_WC.ASM 4-4-2005 11:55:09 PAGE 5
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
0000008E 00203 pcon equ 0x8e ;Power control register
00204
00205 ;pcon bits ----------------------
00000000 00206 bor equ 0x00 ;brown-out reset status
00000001 00207 por equ 0x01 ;power-on reset status
00208 ;--------------------------------
00209
00000091 00210 sspcon2 equ 0x91
00211
00212 ;sspcon2 bits -------------------
00000000 00213 sen equ 0x00
00000001 00214 rsen equ 0x01
00000002 00215 pen equ 0x02
00000003 00216 rcen equ 0x03
00000004 00217 acken equ 0x04
00000005 00218 ackdt equ 0x05
00000006 00219 ackstat equ 0x06
00000007 00220 gcen equ 0x07
00221 ;-------------------------------
00222
00000092 00223 pr2 equ 0x92 ;Timer2 period register
00000093 00224 sspadd equ 0x93 ;Synchronous serial port address register
00000094 00225 sspstat equ 0x94 ;Synchronous serial port status register
00226
00227 ;sspstat bits -------------------
00000000 00228 bf equ 0x00
00000001 00229 ua equ 0x01
00000002 00230 rw equ 0x02
00000003 00231 s equ 0x03
00000004 00232 p equ 0x04
00000005 00233 daa equ 0x05
00000006 00234 cke equ 0x06
00000007 00235 smp equ 0x07
00236 ;--------------------------------
00237
00000098 00238 txsta equ 0x98 ;Transmit status register
00239
00240 ;txsta bits ---------------------
00000000 00241 tx9d equ 0x00
00000001 00242 trmt equ 0x01
00000002 00243 brgh equ 0x02
00000004 00244 sync equ 0x04
00000005 00245 txen equ 0x05
00000006 00246 tx9 equ 0x06
00000007 00247 csrc equ 0x07
00248 ;--------------------------------
00249
00000099 00250 spbrg equ 0x99 ;Baud rate generator register
0000009E 00251 adresl equ 0x9e ;ADC result register low byte
0000009F 00252 adcon1 equ 0x9f ;ADC control register
00253
00254 ;adcon1 bits --------------------
00000000 00255 pcfg0 equ 0x00
MPASM 4.00 Released ATA_WC.ASM 4-4-2005 11:55:09 PAGE 6
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00000001 00256 pcfg1 equ 0x01
00000002 00257 pcfg2 equ 0x02
00000003 00258 pcfg3 equ 0x03
00259 ;--------------------------------
00260
00261 ;bank 2
0000010C 00262 eedata equ 0x10c ;EEPROM data register
0000010D 00263 eeadr equ 0x10d ;EEPROM address register
0000010E 00264 eedath equ 0x10e ;EEPROM data register msb
0000010F 00265 eeadrh equ 0x10f ;EEPROM address register msb
00266
00267 ;bank 3
0000018C 00268 eecon1 equ 0x18c ;eeprom control 1 register
00269
00270 ;eecon1 bits --------------------
00000000 00271 erd equ 0x00 ;read control
00000001 00272 ewr equ 0x01 ;write conrol
00000002 00273 ewren equ 0x02 ;eeprom write enable
00000003 00274 ewrerr equ 0x03 ;eeprom error flag
00000007 00275 eepgd equ 0x07 ;program/data eeprom select
00276 ;--------------------------------
00277
0000019D 00278 eecon2 equ 0x19d ;eeprom control 2 register
00279
00280 ;configuation word register
00281 ;oscillator selection
00000000 00282 FOSC_LP equ 0x0000
00000001 00283 FOSC_XT equ 0x0001
00000002 00284 FOSC_HS equ 0x0002
00000003 00285 FOSC_RC equ 0x0003
00286
00287 ;watchdog enable
00000004 00288 WDTE_ON equ 0x0004
00000000 00289 WDTE_OFF equ 0x0000
00290
00291 ;power-up timer enable
00000000 00292 PWRTE_ON equ 0x0000
00000008 00293 PWRTE_OFF equ 0x0008
00294
00295 ;flash program memory code protection
00000000 00296 CP_0000 equ 0x0000
00000010 00297 CP_1000 equ 0x0010
00000020 00298 CP_1F00 equ 0x0020
00000030 00299 CP_OFF equ 0x0030
00300
00301 ;brown-out reset enable
00000040 00302 BODEN_ON equ 0x0040
00000000 00303 BODEN_OFF equ 0x0000
00304
00305 ;low-voltage icsp enable
00000080 00306 LVP_ON equ 0x0080
00000000 00307 LVP_OFF equ 0x0000
00308
MPASM 4.00 Released ATA_WC.ASM 4-4-2005 11:55:09 PAGE 7
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00309 ;data ee memory code protection
00000000 00310 CPD_ON equ 0x0000
00000100 00311 CPD_OFF equ 0x0100
00312
00313 ;flash program memory write enable
00000200 00314 WRT_ON equ 0x0200
00000000 00315 WRT_OFF equ 0x0000
00316
00317 ;in-circuit debugger
00000000 00318 ICD_ON equ 0x0000
00000800 00319 ICD_OFF equ 0x0800
00320
00321 ;flash program memory code protection
00322 ;(should be set same as CP)
00000000 00323 CP2_0000 equ 0x0000
00001000 00324 CP2_1000 equ 0x1000
00002000 00325 CP2_1F00 equ 0x2000
00003000 00326 CP2_OFF equ 0x3000
00011 include "main.inc"
00001 ;****************************************************************
00002 ;* MUSIC CD PLAYER - MuCoP
00003 ;* BY KEITH WILSON
00004 ;* VERSION 1
00005 ;****************************************************************
00006
00007 ;****************************************************************
00008 ;All global memory variables
00009 ;****************************************************************
00010
00000020 00011 AtaCounter equ 0x20
00000021 00012 AtaCommand equ 0x21
00000022 00013 AtaPacket equ 0x22
00000030 00014 AtaDataLsb equ 0x30
00000031 00015 AtaDataMsb equ 0x31
00016
00000034 00017 KeyEvent equ 0x34
00000035 00018 KeyState equ 0x35
00019
00020 ;updated by ReadToc function
00000036 00021 TrackFirstNr equ 0x36
00000037 00022 TrackLastNr equ 0x37
00000038 00023 TrackStartMSF_M equ 0x38
00000039 00024 TrackStartMSF_S equ 0x39
0000003A 00025 TrackStartMSF_F equ 0x3a
0000003B 00026 TrackLeadOutMSF_M equ 0x3b
0000003C 00027 TrackLeadOutMSF_S equ 0x3c
0000003D 00028 TrackLeadOutMSF_F equ 0x3d
00029
00030 ;updated by ReadSubChannel function
00000044 00031 TrackCurrentNr equ 0x44 ;initialise to 1 (default 1st track)
00000045 00032 TrackCurrentMSF_M equ 0x45
00000046 00033 TrackCurrentMSF_S equ 0x46
00000047 00034 TrackCurrentMSF_F equ 0x47
MPASM 4.00 Released ATA_WC.ASM 4-4-2005 11:55:09 PAGE 8
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -