Prev: 8D06 Up: Map Next: 8EC5
8E5A: Routine at 8E5A
Used by the routine at 8D06.
8E5A LD A,(IX+$00) A=IX+00.
8E5D DEC A Decrease A by one.
8E5E SET 2,A Set bit 2 of A.
8E60 INC A Increment A by one.
8E61 LD (IX+$00),A Write A back to IX+00.
8E64 BIT 0,(IX+$08)
8E68 JR NZ,$8E97
8E6A LD A,(IX+$05)
8E6D AND A
8E6E JP M,$8E89
8E71 EX AF,AF'
8E72 LD A,($608F) A=FuelLevel_2.
8E75 AND A
8E76 JR Z,$8E93
8E78 EX AF,AF'
8E79 CP $40
8E7B JP NC,$8D3A
8E7E ADD A,$08
8E80 CP $30
8E82 JR C,$8E86
8E84 ADD A,$10
This entry point is used by the routine at 8EC5.
8E86 JP $8D37 Jump to 8D37.
8E89 CP $D0
8E8B JR NC,$8E8F
8E8D ADD A,$10
8E8F ADD A,$08
8E91 JR $8E86 Jump to 8E86.
8E93 LD A,$10 A=10.
8E95 JR $8E86 Jump to 8E86.
8E97 LD A,(IX+$05) A=IX+05.
8E9A AND A
8E9B JP M,$8EB0
8E9E EX AF,AF'
8E9F LD A,($608F) A=FuelLevel_2.
8EA2 AND A
8EA3 JR Z,$8EBB
8EA5 EX AF,AF'
8EA6 CP $20
8EA8 JP NC,$8EC0
8EAB ADD A,$04
8EAD JP $8D37 Jump to 8D37.
8EB0 CP $D0
8EB2 JR NC,$8EB6
8EB4 ADD A,$10
8EB6 ADD A,$08
8EB8 JP $8D37 Jump to 8D37.
8EBB LD A,$10 A=10.
8EBD JP $8D37 Jump to 8D37.
8EC0 LD A,$20 A=20.
8EC2 JP $8D37 Jump to 8D37.
Prev: 8D06 Up: Map Next: 8EC5