MCPcopy Create free account
hub / github.com/SimHacker/micropolis / wsp

Function wsp

MicropolisCore/src/CellEngine/src/cellengine.cpp:5393–5406  ·  view source on GitHub ↗

Return 1 if well pointed by an excited special transmission state, else returns 0. */

Source from the content-addressed store, hash-verified

5391/* Return 1 if well pointed by an excited special transmission state,
5392 else returns 0. */
5393int 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,

Callers 1

n_jvn29Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected