Return 1 if well pointed by an excited special transmission state, else returns 0. */
| 5391 | /* Return 1 if well pointed by an excited special transmission state, |
| 5392 | else returns 0. */ |
| 5393 | int wsp(Byte state, Byte right, Byte up, Byte left, Byte down) |
| 5394 | { |
| 5395 | state &= DM; |
| 5396 | return ( |
| 5397 | ((right == SLX) && |
| 5398 | (state != RD)) || |
| 5399 | ((up == SDX) && |
| 5400 | (state != UD)) || |
| 5401 | ((left == SRX) && |
| 5402 | (state != LD)) || |
| 5403 | ((down == SUX) && |
| 5404 | (state != DD)) |
| 5405 | ); |
| 5406 | } |
| 5407 | |
| 5408 | |
| 5409 | /* Return 1 if well flanked by an excited (not next excited) confluent state, |