📄 ex.lst
字号:
0000 CAPTUREA_RISE_EVENT: equ 01h
0000
0000 SPI_DATA: equ 60h ; SPI data register
0000
0000 SPI_CONTROL: equ 61h ; SPI configuration register
0000 TCMP: equ 80h
0000 TBF: equ 40h
0000 MODE1: equ 20h
0000 MODE0: equ 10h
0000 CPOL: equ 08h
0000 CPHA: equ 04h
0000 SCK_SELECT1: equ 02h
0000 SCK_SELECT0: equ 01h
0000
0000 CLOCK_CONFIG: equ F8h ; Internal/external oscillator configuration
0000 EXT_DELAY: equ 80h
0000 WAKEUP_ADJUST2: equ 40h
0000 WAKEUP_ADJUST1: equ 20h
0000 WAKEUP_ADJUST0: equ 10h
0000 LVR_DISABLE: equ 08h
0000 PRECISION_USB_CLOCKING: equ 04h
0000 INTERNAL_CLK: equ 02h
0000 EXTERNAL_CLK: equ 01h
0000
0000 CONTROL: equ FFh ; Processor status and control
0000 IRQ_PENDING: equ 80h
0000 WATCHDOG_RESET: equ 40h
0000 USB_RESET: equ 20h
0000 POWERON_RESET: equ 10h
0000 SUSPEND: equ 08h
0000 INTERRUPT_MASK: equ 04h
0000 SINGLE_STEP: equ 02h
0000 RUN: equ 01h
0000
0000
0000 ;**************************************
0000 ; USB mode encoding
0000
0000 DISABLE: equ 00h
0000 NAK_IN_OUT: equ 01h
0000 STATUS_OUT_ONLY: equ 02h
0000 STALL_IN_OUT: equ 03h
0000 IGNORE_IN_OUT: equ 04h
0000 ISOCHRONOUS_OUT: equ 05h
0000 STATUS_IN_ONLY: equ 06h
0000 ISOCHRONOUS_IN: equ 07h
0000 NAK_OUT: equ 08h
0000 ACK_OUT: equ 09h
0000 NAK_OUT_STATUS_IN: equ 0Ah
0000 ACK_OUT_NAK_IN: equ 0Bh
0000 NAK_IN: equ 0Ch
0000 ACK_IN: equ 0Dh
0000 NAK_IN_STATUS_OUT: equ 0Eh
0000 ACK_IN_STATUS_OUT: equ 0Fh
0000
0000
0000 ;**************************************
0000 ; general use constants
0000
0000 SET: equ FFh
0000 CLEAR: equ 00h
0000
0000 ;**********************************************************
0000 ; USB Descriptor and Request constants
0000 ; source p172,,175 USB specification
0000 ;**********************************************************
0000
0000
0000 ; Characterists of bmRequest Value
0000 ;
0000 ; D7 Data xfer direction
0000 ; 0 = Host to device
0000 ; 1 = Device to host
0000 ;
0000 ; D6..5 Type
0000 ; 0 = Standard
0000 ; 1 = Class
0000 ; 2 = Vendor
0000 ; 3 = Reserved
0000 ;
0000 ; D4..0 Recipient
0000 ; 0 = Device
0000 ; 1 = Interface
0000 ; 2 = Endpoint
0000 ; 3 = Other
0000 ; 4..31 = Reserved
0000
0000
0000 ;**************************************
0000 ; bmRequestType
0000 HOSTTODEVICE: equ 00h
0000 DEVICETOHOST: equ 80h
0000
0000 STANDARD_TYPE: equ 00h
0000 CLASS_TYPE: equ 20h
0000 VENDOR_TYPE: equ 40h
0000 RESERVED_TYPE: equ 60h
0000
0000 DEVICE_RECIPIENT: equ 00h
0000 INTERFACE_RECIPIENT: equ 01h
0000 ENDPOINT_RECIPIENT: equ 02h
0000 OTHER_RECIPIENT: equ 03h
0000
0000 ;**************************************
0000 ; bRequest
0000 GET_STATUS: equ 00h
0000 CLEAR_FEATURE: equ 01h
0000 SET_FEATURE: equ 03h
0000 SET_ADDRESS: equ 05h
0000 GET_DESCRIPTOR: equ 06h
0000 SET_DESCRIPTOR: equ 07h
0000 GET_CONFIGURATION: equ 08h
0000 SET_CONFIGURATION: equ 09h
0000 GET_INTERFACE: equ 0Ah
0000 SET_INTERFACE: equ 0Bh
0000 SYNCH_FRAME: equ 0Ch
0000
0000
0000 ;**************************************
0000 ; Descriptor Types
0000 DEVICE: equ 01h
0000 CONFIGURATION: equ 02h
0000 STRING: equ 03h
0000 INTERFACE: equ 04h
0000 ENDPOINT: equ 05h
0000
0000 ;**************************************
0000 ; Feature Selectors
0000 DEVICE_REMOTE_WAKEUP: equ 01h
0000 ENDPOINT_STALL: equ 00h
0000
0000 ;**************************************
0000 ; HID Class Request Types
0000 GET_REPORT: equ 01h
0000 GET_IDLE: equ 02h
0000 GET_PROTOCOL: equ 03h
0000 SET_REPORT: equ 09h
0000 SET_IDLE: equ 0Ah
0000 SET_PROTOCOL: equ 0Bh
0000
0000 ;**************************************
0000 ; HID report formats
0000 HID_BOOT: equ 00h
0000 HID_REPORT: equ 01h
0000
0000 ;**************************************
0000 ; ENDPOINT 0 SETUP REQUEST FIELDS
0000 BMREQUESTTYPE: equ 00h
0000 BREQUEST: equ 01h
0000 WVALUELO: equ 02h
0000 WVALUEHI: equ 03h
0000 WINDEXLO: equ 04h
0000 WINDEXHI: equ 05h
0000 WLENGTHLO: equ 06h
0000 WLENGTHHI: equ 07h
0000 ;========================================================================
0000 ; FILE: ps2.inc
0000 ;
0000 ; This file contains ps2-specific delarations
0000 ;
0000 ;========================================================================
0000 BAT_PASS: equ 0aah
0000 BAT_FAIL: equ 055h
0000
0000 ;ps2 clock, data bits are D+ and D-, respectively
0000
0000 PS2_CLOCK_BIT: equ 20h
0000 PS2_DATA_BIT: equ 10h
0000
0000 ;PS2 response byte declarations
0000
0000 PS2_RESEND: equ 0feh ; Resend response (request resend from host)
0000 PS2_ACK: equ 0fah ; ACK response
0000 PS2_ERROR: equ 0fch ; Error response
0000
0000 ;
0000 ; PS2 commands
0000 ;
0000 PS2_RESET_CMD: equ 0FFh
0000 PS2_RESET_WRAP_MODE_CMD: equ 0ECh
0000 PS2_SET_SAMPLE_RATE_CMD: equ 0F3h
0000 PS2_SET_RESOLUTION_CMD: equ 0E8h
0000
0000 ;
0000 ; PS2 Mouse Resolution
0000 ;
0000 RES1: equ 00h ; 1 count/mm
0000 RES2: equ 01h ; 2 counts/mm
0000 RES4: equ 02h ; 4 counts/mm
0000 RES8: equ 03h ; 8 counts/mm
0000
0000 ;
0000 ; PS2 Scaling
0000 ;
0000 SCALE2_1: equ 01h ; scale 2:1
0000 SCALE1_1: equ 00h ; scale 1:1
0000
0000 ;========================================================================
0000 ; FILE: macros.inc
0000 ;
0000 ; contains useful macro definitions
0000 ;
0000 ;========================================================================
0000
0000 ;clear carry
0000 MACRO CLEARC
0000 or A,0
0000 ENDM
0000
0000 ;set carry
0000 MACRO SETC
0000 cpl A
0000 cpl A
0000 ENDM
0000
0000
0000
0000
0000 ;delay macro is the front-end for a call to the delay subroutine
0000 ;The fixed overhead of the macro plus the subroutine is 3 us,
0000 ;so this technique is good for delays of 4us or greater.
0000 ;
0000
0000 MACRO DELAY US
0000 push A
0000 mov A,(US-3)
0000 call delay
0000 ENDM
0000
0000 ;*****
0000 ; CLRC
0000 ; Clears C bit
0000 ;*****
0000 MACRO CLRC
0000 add A,0 ;Clear C-bit
0000 ;*** END MACRO CLRC
0000 ENDM
0000
0000
0000
0000
0000
0000 ;
0000 ; Supported Interfaces
0000 ;
0000 USB_MOUSE: equ 01h
0000 PS2_MOUSE: equ 00h
0000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -