标题:请教一下这段汇编代码的含义
取消只看楼主
古浪
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2013-11-1
结帖率:100%
已结贴  问题点数:20 回复次数:1 
请教一下这段汇编代码的含义
程序代码:
push    word ptr [bp+0]
call    sub_156
jnz     short loc_E2
cli
mov     al, 0D1h
out     64h, al         ; AT Keyboard controller 8042.
call    sub_156
mov     al, 0DFh
out     60h, al         ; AT Keyboard controller 8042.
call    sub_156
mov     al, 0FFh
out     64h, al  ; AT Keyboard controller 8042.
                 ; Reset the keyboard and start internal diagnostics
call    sub_156
sti

loc_E2:
       mov     ax, 0BB00h
int     1Ah
and     eax, eax
;以下省略

sub_156  proc near
       sub     cx, cx

    loc_158: 
       in      al, 64h     ; AT Keyboard controller 8042.
       jmp     short $+2
       and     al, 2
       loopne  loc_158
       and     al, 2
       retn
sub_156 endp

跪求高手赐教!!
2013-11-01 11:15
古浪
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2013-11-1
得分:0 
回复 2楼 孔家
感谢回复。是这样,期待高手给出关于这里对键盘具体做了什么操作的详细解释,感激不尽!
2013-11-01 18:34



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-422876-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.249705 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved