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

Method n_freaco

MicropolisCore/src/CellEngine/src/cellengine.cpp:5198–5224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5196#if 0
5197
5198void CellEngine::n_freaco()
5199{
5200 long sum;
5201
5202#define FRAIN ( \
5203 (((c & 0x03) == 0) \
5204 ? ((SUM8REG(1) == 2) ? 1 : 0) \
5205 : 0) | \
5206 ((c & 1) ? (0xfe) | \
5207 : (
5208 : 0)
5209 ((sum = c % 0xfe),
5210 (c << 1) & 0xfe)) \
5211)
5212
5213#define FRANTILIFE ( \
5214 ((sum = SUM8REG(1)), \
5215 (((c&1) ? (sum != 5) : (((sum != 5) && (sum != 6)) ? 1 : 0)) | \
5216 ((c&0x7f) << 1))))
5217
5218#define FREACO ( \
5219 ((((sum = (SUM9REG(128) >> 7)) > 5) || (sum == 4)) \
5220 ? ((FRANTILIFE & 127) | 128) \
5221 : (FRAIN & 127)))
5222
5223 CAM_MASKED_REG_LOOP(FREACO)
5224}
5225
5226#endif
5227

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected