Routines |
Prev: 27872 | Up: Map | Next: 27904 |
Used by the routine at 29854. Returns with the zero flag reset if the x-coordinate of the front column of Sam's sprite is between 1 and 6 mod 8 (which is where telephones are located in rooms).
|
||||||||
27892 | CALL 63138 | Calculate the x-coordinate of the front column of Sam's sprite (x) | ||||||
27895 | LD B,A | B=x%8 | ||||||
27896 | DEC A | Set the zero flag if x is 0 or 7 mod 8 (telephones are located at x-coordinates between 1 and 6 mod 8) | ||||||
27897 | CP 6 | |||||||
27899 | SBC A,A | |||||||
27900 | LD A,B | A=x%8 | ||||||
27901 | LD B,2 | Bit 1 set: check for the presence of a telephone | ||||||
27903 | RET |
Prev: 27872 | Up: Map | Next: 27904 |