'What are the scan codes for keyboard arrows? (right,left,down,up)

I need scan codes for arrows (right,left,down,up). I am making software in Assembler and I need to know the hex values for the scan codes of the keyboard arrows.



Solution 1:[1]

Great can obtain scan codes in linux with:

sudo showkey -s
  • Up: 0x48 (pressing) 0xc8 (release)
  • Down: 0x50 (press) 0xd0 (release)
  • Left: 0x4b (press) 0xcb (release)
  • Right: 0x4d (press) 0xcd (release)

Solution 2:[2]

Here are the codes you're looking for...

  • Left: AC
  • Up: AD
  • Right: AE
  • Down: AF

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Thedemon007
Solution 2 E_net4 - Mr Downvoter