我试图理解一个程序来获取箭头键。这是代码:
int getkeys( ) { union REGS i,o; while(!kbhit( )); i.h.ah=0; int86(22,&i,&o); return(o.h.ah); }
有人可以解释我这个代码。这是为了获得箭头键,但我没有得到这个代码。
assembly dos bios turbo-c++ x86-16
assembly ×1
bios ×1
dos ×1
turbo-c++ ×1
x86-16 ×1