Hi rossko57, the first problem is when I turn on the computer and I have not pressed any key the routine sends a "0" either terminal or using the debug, but it confuses me how to detect this second value when you press any key, I can not see inside routine, I understand that DIR_X is responsible...