con.read_q
键盘处理…
终端设备包括显示器和键盘
让外设工作起来
关于键盘的故事从哪里开始?
如何使用键盘?...,func, scroll, cursor 等等
扫描码02对应按键1;01对应ESC;12对应E等等
mode: .byte 0
do_self:
lea alt_map,%ebx...testb $0x20,mode //alt键是否同时按下 jne 1f
lea shift_map,%ebx testb $0x03,mode jne 1f
//找到映射表,如a的key_map...//同时按了shift键,需要转换成大写
shift_map: .byte 0,27 .ascii “!@#$%^&*()_+” ...
#elif defined(KBD_GR) ......是否亮
je 2f cmpb $’a,%al jb 2f
cmpb $’},%al ja 2f subb $32,%al //变大写
2:testb $??