Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Keyboard Scan Codes
 83-Key 84-Key                           Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
             Scan Codes for 101/102-Key Keyboard (in hexadecimal)
 
┌───┐┌──┬──┬──┬──┐┌──┬──┬──┬──┐┌──┬───┬───┬───┐┌───┬───┬───┐
│Esc││F1│F2│F3│F4││F5│F6│F7│F8││F9│F10│F11│F12││Prt│Scr│Pse│
│ 01││3B│3C│3D│3E││3F│40│41│42││43│ 44│ 57│ 58││ ↔ │ 57│ § │
└───┘└──┴──┴──┴──┘└──┴──┴──┴──┘└──┴───┴───┴───┘└───┴───┴───┘
┌──┬──┬──┬──┬──┬──┬──┬──┬──┬──┬──┬──┬──┬────┐┌───┬───┬───┐┌───┬───┬───┬───┐
│` │ 1│ 2│ 3│ 4│ 5│ 6│ 7│ 8│ 9│ 0│ -│ =│ ──││Ins│Hom│PgU││Num│ / │ * │ - │
│29│02│03│04│05│06│07│08│09│0A│0B│0C│0D│  0E││♦52│♦47│♦49││ 45│♦36│ 37│ 4A│
├──┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬───┤├───┼───┼───┤├───┼───┼───┼───┤
│Tab│ Q│ W│ E│ R│ T│ Y│ U│ I│ O│ P│ [│ ]│ \ ││Del│End│PgD││ 7 │ 8 │ 9 │   │
│ 0F│10│11│12│13│14│15│16│17│18│19│1A│1B│ 2B││♦53│♦4F│♦51││ 47│ 48│ 49│ + │
├───┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴┬─┴───┤└───┴───┴───┘├───┼───┼───┤ 4E│
│Caps│ A│ S│ D│ F│ G│ H│ J│ K│ L│ ;│ '│  ─┘│             │ 4 │ 5 │ 6 │   │
│ 3A │1E│1F│20│21│22│23│24│25│26│27│28│   1C│             │ 4B│ 4C│4D │   │
├────┴─┬┴─┬┴─┬┴─┬┴─┬┴─┬┴─┬┴─┬┴─┬┴─┬┴─┬┴─────┤    ┌───┐    ├───┼───┼───┼───┤
│Shift │ Z│ X│ C│ V│ B│ N│ M│ ,│ .│ /│ Shift│    │ ↑ │    │ 1 │ 2 │ 3 │   │
│  2A  │2C│2D│2E│2F│30│31│32│33│34│35│   36 │    │♦48│    │ 4F│ 50│ 51│─┘│
├────┬─┼──┴┬─┼──┴──┴──┴──┴──┴──┼─┬┴──┼─┬────┤┌───┼───┼───┐├───┴───┼───┤♦1C│
│Ctrl│ │Alt│ │    Space Bar    │ │Alt│ │Ctrl││ ← │ ↓ │ → ││  Ins  │Del│   │
│ 1D │ │ 38│ │        39       │ │♦38│ │♦10 ││♦4B│♦50│♦40││   52  │ 53│   │
└────┘ └───┘ └─────────────────┘ └───┘ └────┘└───┴───┴───┘└───────┴───┴───┘
 
  ♦ = E0
  ↔ = E0 2A E0 37
  § = E0 10 45
                                    -♦-