自制操作系统day7(获取按键编码、FIFO缓冲区、鼠标、键盘控制器(Keyboard Controller, KBC)、PS/2协议)
day7获取按键编码(hiarib04a)voidinthandler21(int*esp){structBOOTINFO*binfo=(structBOOTINFO*)ADR_BOOTINFO;//获取系统启动信息结构体指针unsignedchardata,s[4];//data:键盘数据缓存,s:格式化字符串缓存io_out8(PIC0_OCW2,0x61);//发送EOI命令(0x61)通知