⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smckxl.asm

📁 SMSC KBC1100键盘控制器原代码
💻 ASM
📖 第 1 页 / 共 5 页
字号:
; Section 14.0
;
;    GetMAKEBUF:          - Gets Data from MAKEBUF & puts it in KEYBUF
;    GetKEYBUF:           - Gets Data from KEYBUF & adjust the pointers
;    GetOUTBUF:           - Gets Data from OUTBUF & adjust the pointers
;
; Section 15.0
;
;    BldScanCode:         - Builds up ScanSet 1 or ScanSet 2 values
;    TransScan:           - Translates from ScanCodeSet2 to ScanCodeSet1
;    TransExtMk1:         - Translate extended 101 keys make, add E0 ..
;    TransAdjOnMk:        - Adjust 101 extended shifts state if make
;
; Section 16.0
;
;    K_LShift:            - Left shift handling routine
;    K_LCtrl:             - Left control handling routine
;    K_LAlt:              - Left ALT handling routine
;    K_F7:                - F7 handling routine
;    K_SysReq:            - SysReq handling routine
;    K_RShift:            - Right shift handling routine
;    K_RCtrl:             - Right control handling routine
;    K_RAlt:              - Right ALT handling routine
;    K_Enter:             - Enter handling routine
;    K_Insert:            - Insert key handling routine
;    K_Home:              - Home key handling routine
;    K_PgUp:              - Page up handling routine
;    K_Delete:            - Delete handling routine
;    K_End:               - End handling routine
;    K_PgDn:              - Page End handling routine
;    K_UArrow:            - Upper arrow handling routine
;    K_LArrow:            - Left arow handling routine
;    K_DArrow:            - Down arrow handling routine
;    K_RArrow:            - Right arrow handling routine
;    K_LWIN:              - Left window handling routine
;    K_RWIN:              - Right window handling routine
;    K_APPL:              - Window Application handling routine
;    K_PrtScn:            - Print screen handling routine
;    K_BSlash:            - Back slash handling routine
;    K_Pause:             - Pause handling routine
;    K_Break:             - Ctrl+Break handling routine
;    K_Fn1:               - Fn handling routine
;    K_Fn2:               - Fn handling routine
;    K_NumLk:             - Num Lock handling routine
;    K_FnLk2:             - Fnlock2 handling routine
;    K_FnLk1:             - Fnlock1 handling routine
;    K_Setup:             - Setup handling routine
;    K_OADG125:           - OADG Keyboard special key routine
;    K_DAEWOO4:           - German 4/7 special key routine
;    K_DAEWOO5:           - German 5/8 special key routine
;    K_DAEWOO6:           - German 6/9 special key routine
;    K_Function:          - Fn+FunctionKey HotKeys handling routine
;    K_Analog             - Analog HotKeys handling routine.
;    K_PwrEvent:          - MS/W2K key
;    K_SlpEvent:          - MS/W2K key
;    K_WakEvent:          - MS/W2K key
;    K_VolUp:             - MS/W2K key
;    K_VolDn:             - MS/W2K key
;    K_NextTrack:         - MS/W2K key
;    K_PrevTrack:         - MS/W2K key
;    K_Stop:              - MS/W2K key
;    K_Play:              - MS/W2K key
;    K_Mute:              - MS/W2K key
;    K_Media:             - MS/W2K key
;    K_Mail:              - MS/W2K key
;    K_Calculator:        - MS/W2K key
;    K_MyComputer:        - MS/W2K key
;    K_WebSearch:         - MS/W2K key
;    K_WebHome:           - MS/W2K key
;    K_WebBack:           - MS/W2K key
;    K_WebForward:        - MS/W2K key
;    K_WebStop:           - MS/W2K key
;    K_WebRefresh:        - MS/W2K key
;    K_WebFavorites:      - MS/W2K key
;    K_Reserved:          - Dead Key handling routine
;    K_ACPIIntr:          - ACPI INTERRUPT KEY
;
; Section 17.0
;
; Section 18.0
;
;    GetPointer:          - Gets a virtual pointer to index RAM with
;    SendHost:            - xlate and send parallel keyboard to host
;    CmdCB_PwrDn:         - Phoenix Extended Cmd, Power Down command
;    PwrUpRst:            - Reset stuff from power down mode
;    FlashTimer:          - Flash LEDs for password & update Task Delay
;    LoadMatrix:          - Load RAM (80h-FFh) /w default Kbd Matrix
;    LoadFnTable:         - Load Fn shift table
;    SetClearLEDs:        - Set/clr LEDs based on Acc.0 thru Acc.3
;    SendResponse:        - Send Response from internal keyboard
;    SendScanCode:        - Send ScanCode from internal keyboard
;    StorePS55BUF         - Stores PS55 key codes into PS55BUF
;
; Section 19.0
;
; Section 20.0
;
; Section 24.0
;
;    I2CInt          - I2C (SMBus) interrupt.
;    ProcSMBMsg      - Process Message from SMB device.
;    SaveSelStat     - Save Selector State in RAM.
;    SaveChrStat     - Save Charger State in RAM.
;    SaveSelSMB      - Update Selector SMB nibble in RAM.
;Sect 24.1
;
;    QuickSMB        - Quick SMB command
;    WrSMBSlave      - Write Byte/Word/Block SMB Protocols.
;    RdSMBSlave      - Read Byte/Word/Block SMB Protocols.
;    SMBckgRecv      - Receive Byte from SMB Slave in Background.
;    SMBckgRdBt      - Read Byte from SMB Slave in Background.
;    SMBckgRdWd      - Read Word from SMB Slave in Background.
;    SMBckgWrBt      - Write Byte to SMB Slave in Background.
;    SMBckgWrWd      - Write Word to SMB Slave in Background.
;    SMBckgMssg      - Receive Message to the Host in Background.
;    ChkSMBSrvc      - Check if ready for the next message.
;Sect 24.2
;
;    SMBWtStart      - Start SMB transmission.
;    SMBRestart      - Force repeated start conditions.
;    SMBSend         - Send byte to SMB slave.
;    SMBRcvAck0      - Receive byte from SMB slave.
;    SMBWtStop       - Stop SMB transmission.
;    EnbPECTrnsf     - Enable SMB transfer with PEC.
;    CalcCRC8        - Calculate CRC8.
;    EnblSMBTmo      - Enable SMB timeout.
;    SMBReportEr     - SMB Error Report.
;    SMBRecover      - SMB Recovery procedure.
;
;Sect 24.4
;
;    PollSMBus       - Poll SMBus devices status
;    ChkSMBLock      - Check SMB Lock conditions.
;    ChkSMBAlrt      - Check SMB Alert signal.
;    PollSBS         - Poll Smart Battery System.
;    PollSmSel       - Poll Smart Selector.
;    SBSndPolCmd     - Send polling command to Smart Battery.
;    InvdPolFlg      - Invalidate polling flags
;    ChkPolBtPEC     - Check Polled Battery PEC support.
;    ChkChrgSt       - Check SBS Charging Status and update status LED
;    PollTherm       - Poll Thermal Sensors.
;Sect 24.5
;
;    InitSMBus       - Initialize SMBus (I2C) h/w registers.
;    InitSMBVar      - Initialize SMBus & SBS support variables.
;    I2CReset        - Reset SMBus (I2C) h/w to the known state.
;    ChkSMBActv      - Check if SMBus support is active.
;    ChkSBSInstl     - Check if SBS support is active.
;
;
; Section 23.0
;
;    ChkWakeUp:           - Check(and Execute) WakeUp Event
;
; Section 30.0
;
;    Process_KbdCmds      - Process the Keyboard commands.
;    ED_SetLEDs           - Send/Emulate/Shadow the LEDs command.
;    EE_Echo              - Send/Emulate/Shadow the Echo command.
;    F0_CodeSet           - Send/Emulate/Shadow the ScanCode Set command.
;    F1_Invalid           - Send/Emulate/Shadow the Invalid command.
;    F2_ReadID            - Send/Emulate/Shadow the Read Keyboard ID command.
;    F3_DlyRate           - Send/Emulate/Shadow the Typematic rate command.
;    F4_EnblKbd           - Send/Emulate/Shadow the Enable Keyboard command.
;    F5_DisblKbd          - Send/Emulate/Shadow the Disable Keyboard command.
;    F6_Default           - Send/Emulate/Shadow the Set Kbd Defaults command.
;    FE_ResendKB          - Send/Emulate/Shadow the Resend last data command.
;    AckOneByte           - Sends command/data to keyboard or emulates it.
;    AckTwoByte           - Sends command/data to keyboard or emulates it.
;    FF_KbdReset          - Send/Emulate/Shadow the Reset Keyboard command.
;    SetDefaults          - Initialize all internal keyboard variables
;
; Section 30.1
;
;    ProcKbdDat           - Process Data from External Keyboard
;    ScanTBL              - ScanCode translation values (84h bytes long).
;    ConvertScan          - Converts ScanCode into a System ScanCode.
;    ChkPassword          - Check the ScanCode against Password if enabled.
;    ChkAltCrtlShft       - Update shift state flags from external Keyboard.
;    ChkHotKeys           - Check through the list of HotKeys for activity.
;    HotKeyWork           - Check if HotKey work is pending.
;    ChkPS2Event          - Check if SxI is to be generated on Kbd/Aux data


; Section 31.0
;
;    Process_AuxCmds      - Process the Aux Device (Extern and TB) commands.
;    E6_RstScale          - Reset Scaling command.
;    E7_SetScale          - Set Scaling 2:1 command.
;    E8_SetRes            - Set Resolutions command.
;    E9_Status            - Status Request command.
;    EA_Stream            - Set Stream Mode command.
;    EB_RdData            - Read Data command.
;    EC_RstWrap           - Reset Command/Data Echo Mode command.
;    EE_SetWrap           - Set Command/Data Echo Mode command.
;    F0_Remote            - Set Remote Mode command.
;    F2_ReadType          - Report Device Type command.
;    F3_SmplRate          - Set Sample rate command.
;    F4_EnblAux           - Enable the Aux Device command.
;    F5_DisblAux          - Disable the Aux Device command.
;    F6_DefltAux          - Set Defaults command.
;    FE_ResendAX          - Resend the last packet command.
;    FF_ResetAux          - Reset the Aux Device command.
;    OneByteAck           - Send 1byte cmd to the Aux Device.
;    TwoByteAck           - Send 2byte cmd to the Aux Device.
;    Get_AuxResp          - Get response from the Aux Device.
;    Chk_SampleRate       - Check Sample Rate data.
;    SlcRemoteAux         - Select Remote Aux device port.
;    Chk_Resolution       - Check Resolution data.
;    Emulate_AuxCmds      - Emulate responses from Aux Device.
;
; Section 31.1
;
;    ProcAuxDat           - Process Data from External Aux Device.
;    ChkAltrnAux          - Check Alternative Aux operation in legacy mode.
;    MergeLgAux           - Merge Aux Device data in legacy mode.
;    CntLgAuxPack         - Update Aux packet counter in legacy mode.


; Section 32.0
;
;    ChkActivePS2         - Determine which PS/2 port is to be made active.
;    ProcPS2Data          - Dispatch PS/2 Port data processing.
;
; Section 32.1
;
;    PS2CfgTest           - Test PS/2 Ports Configuration.
;    InitPS2Cfg           - Set Initial PS/2 legacy configuration.
;    CfgLgAux             - Configure Aux legacy operation.
;    FindExtDevices       - Find external Keyboard and Aux Device.
;    TestPortX            - Test which  device is connected to PS/2 Port.
;
; Section 32.2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -