![]() |
Routines |
| Prev: 9E35 | Up: Map | Next: 9EA5 |
|
Used by the routines at test_slope_reversed and test_slope_both_ways.
Swaps the record's two x bounds, tests (test_slope), swaps them back, and drops a touch when the object ends before the piece's far x.
|
||||||||
| test_slope_swapped | 9E7A | LD A,(IX+$00) | ||||||
| 9E7D | LD B,(IX+$02) | |||||||
| 9E80 | LD (IX+$00),B | |||||||
| 9E83 | LD (IX+$02),A | |||||||
| 9E86 | CALL test_slope | |||||||
| 9E89 | LD A,(IX+$00) | |||||||
| 9E8C | LD C,(IX+$02) | |||||||
| 9E8F | LD (IX+$00),C | |||||||
| 9E92 | LD (IX+$02),A | |||||||
| 9E95 | LD A,(scratch_count) | |||||||
| 9E98 | AND A | |||||||
| 9E99 | RET Z | |||||||
| 9E9A | LD A,L | |||||||
| 9E9B | ADD A,D | |||||||
| 9E9C | CP (IX+$02) | |||||||
| 9E9F | RET NC | |||||||
| 9EA0 | XOR A | |||||||
| 9EA1 | LD (scratch_count),A | |||||||
| 9EA4 | RET | |||||||
| Prev: 9E35 | Up: Map | Next: 9EA5 |