newbieatassembly
Technical User
Hi,
I was trying to use keyboards routines using inportb(0x60) function for Left Arrow, right Arrow but failing miserable.
This is what I was trying to (simple animation stuffs).
Plot pixels so that a blue sqaure of 10x10 is displayed on screen. Now if Left arrow is pressed the sqaure should move left. If right arrow key is pressed the square should move right.
Anyone know exactly how to do this using arrow keys. Well if required I'll post the code but probably its going terribly wrong and printing all characters instead. Probably I am not getting the tail stuff of the keyboard.
If you have time to give some code or give an asm code, if you have time please do explain.
Thank you
I was trying to use keyboards routines using inportb(0x60) function for Left Arrow, right Arrow but failing miserable.
This is what I was trying to (simple animation stuffs).
Plot pixels so that a blue sqaure of 10x10 is displayed on screen. Now if Left arrow is pressed the sqaure should move left. If right arrow key is pressed the square should move right.
Anyone know exactly how to do this using arrow keys. Well if required I'll post the code but probably its going terribly wrong and printing all characters instead. Probably I am not getting the tail stuff of the keyboard.
If you have time to give some code or give an asm code, if you have time please do explain.
Thank you