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

📄 ps2code.lst

📁 PIC 系列单片机开发用于与计算机PS2通信的程序
💻 LST
📖 第 1 页 / 共 5 页
字号:
                          M   if (7==4)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (7==5)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 nop
                          M                 exitm
                          M   endif
MPASM 03.20.02 Released       PS2CODE.ASM   6-30-2004  14:27:07         PAGE 18
PS/2 Keyboard Emulator
Copyright 2001, Adam Chapweske
LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                          M   if (7==6)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (7==7)
0106   2907               M                 goto    $ + 1
0107   2908               M                 goto    $ + 1
0108   2909               M                 goto    $ + 1
0109   0000               M                 nop
                          M                 exitm
010A   1505           00423                 bsf     DATA
010B   1283           00424                 bcf     STATUS, RP0
                      00425 
010C   1FA3           00426                 btfss   PARITY, 7       ;Parity correct?
010D   34FF           00427                 retlw   0xFF            ;  No--return error
                      00428 
                      00429                 Delay   45
                          M   if (45==1)
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (45==2)
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (45==3)
                          M                 nop
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (45==4)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (45==5)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (45==6)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (45==7)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 goto    $ + 1
MPASM 03.20.02 Released       PS2CODE.ASM   6-30-2004  14:27:07         PAGE 19
PS/2 Keyboard Emulator
Copyright 2001, Adam Chapweske
LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (45%4==0)
                          M                 movlw   (45-4)/4
                          M                 call    Delay_us
                          M                 exitm
                          M   endif
                          M   if (45%4==1)
010E   300A               M                 movlw   (45-5)/4
010F   2121               M                 call    Delay_us
0110   0000               M                 nop
                          M                 exitm
0111   3400           00430                 retlw   0x00
                      00431 
                      00432 BitIn           Delay   8
                          M   if (8==1)
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (8==2)
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (8==3)
                          M                 nop
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (8==4)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (8==5)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (8==6)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (8==7)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 nop
                          M                 exitm
                          M   endif
MPASM 03.20.02 Released       PS2CODE.ASM   6-30-2004  14:27:07         PAGE 20
PS/2 Keyboard Emulator
Copyright 2001, Adam Chapweske
LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                          M   if (8%4==0)
0112   3001               M                 movlw   (8-4)/4
0113   2121               M                 call    Delay_us
                          M                 exitm
0114   1683           00433                 bsf     STATUS, RP0
0115   1185           00434                 bcf     CLOCK
                      00435                 Delay   45
                          M   if (45==1)
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (45==2)
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (45==3)
                          M                 nop
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (45==4)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (45==5)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (45==6)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (45==7)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (45%4==0)
                          M                 movlw   (45-4)/4
                          M                 call    Delay_us
                          M                 exitm
                          M   endif
                          M   if (45%4==1)
0116   300A               M                 movlw   (45-5)/4
0117   2121               M                 call    Delay_us
0118   0000               M                 nop
MPASM 03.20.02 Released       PS2CODE.ASM   6-30-2004  14:27:07         PAGE 21
PS/2 Keyboard Emulator
Copyright 2001, Adam Chapweske
LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                          M                 exitm
0119   1585           00436                 bsf     CLOCK
011A   1283           00437                 bcf     STATUS, RP0
                      00438                 Delay   21
                          M   if (21==1)
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (21==2)
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (21==3)
                          M                 nop
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (21==4)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (21==5)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (21==6)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 exitm
                          M   endif
                          M   if (21==7)
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 goto    $ + 1
                          M                 nop
                          M                 exitm
                          M   endif
                          M   if (21%4==0)
                          M                 movlw   (21-4)/4
                          M                 call    Delay_us
                          M                 exitm
                          M   endif
                          M   if (21%4==1)
011B   3004               M                 movlw   (21-5)/4
011C   2121               M                 call    Delay_us
011D   0000               M                 nop
                          M                 exitm
011E   1905           00439                 btfsc   DATA
011F   3480           00440                 retlw   0x80
MPASM 03.20.02 Release

⌨️ 快捷键说明

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