![]() |
Routines |
| Prev: 45931 | Up: Map | Next: 45980 |
|
Used by the routine at InitialiseDisplayBuffer.
Returns the object attribute when its bit 2 is clear, or when bit 0 of 45422 is set. Returns zero when bit 1 of the attribute is set.
|
||||
| ReadObjectAttribute | 45959 | LD A,(40989) | Read the object attribute. | |
| 45962 | BIT 2,A | See whether bit 2 of it is set. | ||
| 45964 | RET Z | Return if that marker is clear. | ||
| 45965 | LD HL,45422 | Point at the display flag. | ||
| 45968 | BIT 0,(HL) | See whether the display flag is set. | ||
| 45970 | RET NZ | Return if that marker is set. | ||
| 45971 | BIT 1,A | Jump ahead to ReadObjectAttribute_SignalStepFailed if bit 1 of the attribute is set. | ||
| 45973 | JR NZ,ReadObjectAttribute_SignalStepFailed | |||
| 45975 | OR %00000001 | Reset the zero flag. | ||
| 45977 | RET | Return. | ||
| ReadObjectAttribute_SignalStepFailed | 45978 | XOR A | Clear A. | |
| 45979 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 45931 | Up: Map | Next: 45980 |