All pastes #900947 Raw Edit

Keyboard problem

public c v1 · immutable
#900947 ·published 2008-02-12 08:36 UTC
rendered paste body
	unsigned short scancode;	//unsigned short status;		while(1 == 1)	{			//status = inportb(0x64);			scancode = inportb(0x60);			if(scancode == 0x1e)			{			k_printf("A", 5);			update_cursor(6, 0);			} else {			k_printf("Not A", 5);			update_cursor(6, 0);			}	}