Relative Content

Tag Archive for assemblyirvine32

Why is the doesn’t the incorrect character showing up?

So I am making a typing game, where the word drops down the screen and the user has to type the word before it reaches the bottom of the screen. My code has where if the user types the correct character, it prints it in green and over the original word. Then if the user types the incorrect character, it prints it in red and also over original word but the user has to type the right character for them to continue. The issue I am having is that the incorrect character does display correctly.

undefined symbol : GetAsyncKeyState

I’m attempting to utilize the GetAsyncKeyState function in Assembly language to detect the state of a keyboard key. Specifically, I want to print a message when the user presses the “W” key. However, I encountered an “undefined symbol” error when attempting to use the GetAsyncKeyState function.