|  | Routines | 
| Prev: 46779 | Up: Map | Next: 46821 | 
| 
Used by the routine at Handler_Controls.
 
 | ||||||||||||||||||||
| 
"Left" is handled by a different port to the other control keys.
 | ||||||||||||||||||||
| Handler_Controls_Keyboard | 46783 | LD BC,63486 | Read from the keyboard; 
 | |||||||||||||||||
| 46786 | IN A,(C) | |||||||||||||||||||
| 
Handles "left" action.
 | ||||||||||||||||||||
| 46788 | LD E,16 | E=16. | ||||||||||||||||||
| 46790 | BIT 4,A | Return if "5" (left) was pressed. | ||||||||||||||||||
| 46792 | RET Z | |||||||||||||||||||
| 
Handle "right", "down", "up" and "fire".
 | ||||||||||||||||||||
| 46793 | LD BC,61438 | Read from the keyboard; 
 | ||||||||||||||||||
| 46796 | IN A,(C) | |||||||||||||||||||
| 
Handles "right" action.
 | ||||||||||||||||||||
| 46798 | LD E,0 | E=0. | ||||||||||||||||||
| 46800 | BIT 2,A | Return if "8" (right) was pressed. | ||||||||||||||||||
| 46802 | RET Z | |||||||||||||||||||
| 
Handles "down" action.
 | ||||||||||||||||||||
| 46803 | LD E,8 | E=8. | ||||||||||||||||||
| 46805 | BIT 4,A | Return if "6" (down) was pressed. | ||||||||||||||||||
| 46807 | RET Z | |||||||||||||||||||
| 
Handles "up" action.
 | ||||||||||||||||||||
| 46808 | LD E,24 | E=24. | ||||||||||||||||||
| 46810 | BIT 3,A | Return if "7" (up) was pressed. | ||||||||||||||||||
| 46812 | RET Z | |||||||||||||||||||
| 
Handles "fire" action.
 | ||||||||||||||||||||
| 46813 | LD E,128 | E=128. | ||||||||||||||||||
| 46815 | BIT 0,A | Return if "0" (fire) was pressed. | ||||||||||||||||||
| 46817 | RET Z | |||||||||||||||||||
| 
Handle no action.
 | ||||||||||||||||||||
| 46818 | LD E,192 | E=192. | ||||||||||||||||||
| 46820 | RET | Return. | ||||||||||||||||||
| Prev: 46779 | Up: Map | Next: 46821 |