//------------------------------------------------------------------------------ // If there is keypress EAX = First KeyCode, else 0 //------------------------------------------------------------------------------ cKeyPressed: //0262 //ESI = KEYBOARD START, KK? cmp FS:#ESI,0; je A0262_NoKeyPress; inc ESI; mov EAX,FS:#ESI; mov FS:#ESI,EAX; A0262_NoKeyPress: pop ESI; pop EBX; A0262_NoInput: ret