CodeBase - NAND Function

Return to the CodeBase listing

Category: Core

Version: 1.0

1
0

Information

Uploaded: 14th Jun 2012 09:09

Modified: 14th Jun 2012 09:12

Author:  MjG0001

Summary

Logical NAND Function

Full Description

Logical NAND gate:<br /> <br /> a | b | o<br /> -------------<br /> 1 | 1 | 0<br /> 1 | 0 | 1<br /> 0 | 1 | 1<br /> 0 | 0 | 1<br /> <br /> Useful for returning a 0 when, and only when, two states are true at the same time; otherwise 1 in any other case.<br /> <br /> Example Utility:<br /> <br /> a = Player has invincible shield<br /> b = Player has deadly weapon<br /> o = Enemy does not attack

Comments

No comments yet.