Prev: A402 Up: Map Next: A4E7
A46A: Configure and check key pressed routines for Rex movement
Configure check FIRE key pressed routine. Used by the routines at DE5D and DE99.
A46A LD HL,($A0AB) Configure port for key read in routine $A477
A46D LD ($A478),HL
A470 LD A,($A0AD) Configure operand BIT to check for key press in routine $A477
A473 LD ($A481),A
A476 RET
Check FIRE key pressed. Default key is O. Used by the routines at 947A, 97C3, 97EA, A4E7 and A915.
A477 LD BC,$DFFE Read port for FIRE key
A47A IN A,(C)
A47C LD HL,$A0AE Reset input device type
A47F XOR (HL)
A480 BIT 1,A Execute specific BIT operand to test if bit of key FIRE is set
A482 RET
Configure check LEFT key pressed routine. Used by the routines at DE5D and DE99.
A483 LD HL,($A0AB) Configure port for key read in routine $A490
A486 LD ($A491),HL
A489 LD A,($A0AD) Configure operand BIT to check for key press in routine $A490
A48C LD ($A49A),A
A48F RET
Check LEFT key pressed. Default key is Q. Used by the routines at 947A and C27E.
A490 LD BC,$FBFE Read port for LEFT key
A493 IN A,(C)
A495 LD HL,$A0AE Reset input device type
A498 XOR (HL)
A499 BIT 0,A Execute specific BIT operand to test if bit of key LEFT is set
A49B RET
Configure check RIGHT key pressed routine. Used by the routines at DE5D and DE99.
A49C LD HL,($A0AB) Configure port for key read in routine $A4A9
A49F LD ($A4AA),HL
A4A2 LD A,($A0AD) Configure operand BIT to check for key press in routine $A4A9
A4A5 LD ($A4B3),A
A4A8 RET
Check RIGHT key pressed. Default key is W. Used by the routines at 947A and C27E.
A4A9 LD BC,$FBFE Read port for RIGHT key
A4AC IN A,(C)
A4AE LD HL,$A0AE Reset input device type
A4B1 XOR (HL)
A4B2 BIT 1,A Execute specific BIT operand to test if bit of key RIGHT is set
A4B4 RET
Configure check UP key pressed routine. Used by the routines at DE5D and DE99.
A4B5 LD HL,($A0AB) Configure port for key read in routine $A4C2
A4B8 LD ($A4C3),HL
A4BB LD A,($A0AD) Configure operand BIT to check for key press in routine $A4C2
A4BE LD ($A4CC),A
A4C1 RET
Check UP key pressed. Default key is I. Used by the routine at 947A.
A4C2 LD BC,$DFFE Read port for UP key
A4C5 IN A,(C)
A4C7 LD HL,$A0AE Reset input device type
A4CA XOR (HL)
A4CB BIT 2,A Execute specific BIT operand to test if bit of key UP is set
A4CD RET
Configure check DOWN key pressed routine. Used by the routines at DE5D and DE99.
A4CE LD HL,($A0AB) Configure port for key read in routine $A4DB
A4D1 LD ($A4DC),HL
A4D4 LD A,($A0AD) Configure operand BIT to check for key press in routine $A4DB
A4D7 LD ($A4E5),A
A4DA RET
Check DOWN key pressed. Default key is J. Used by the routine at 947A.
A4DB LD BC,$BFFE Read port for DOWN key
A4DE IN A,(C)
A4E0 LD HL,$A0AE Reset input device type
A4E3 XOR (HL)
A4E4 BIT 3,A Execute specific BIT operand to test if bit of key DOWN is set
A4E6 RET
Prev: A402 Up: Map Next: A4E7