https://github.com/lorhansohaky/logicgate
https://github.com/lorhansohaky/logicgate
logic-gates
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lorhansohaky/logicgate
- Owner: LorhanSohaky
- License: mit
- Created: 2016-01-13T21:41:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-13T21:50:26.000Z (over 9 years ago)
- Last Synced: 2024-12-05T01:13:26.619Z (6 months ago)
- Topics: logic-gates
- Language: C
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PORTAS LÓGICAS EM C
### LICENÇA
**MIT**
[Leia a licença](LICENSE)### COMPILADOR UTILIZADO
***gcc (Ubuntu 4.8.5-2ubuntu1~14.04.1) 4.8.5***### OBJETIVO
Estudar sobre os operadores lógicos e portas lógicas.### COMO USAR
`int AND(unsigned short int val1, unsigned short int val2)`: Faz a operação AND e retorna um inteiro.
- unsigned short int val1: Primeiro valor;
- unsigned short int val2: Segundo valor;`int OR(unsigned short int val1, unsigned short int val2)`: Faz a operação OR e retorna um inteiro.
- unsigned short int val1: Primeiro valor;
- unsigned short int val2: Segundo valor;`int NOT(unsigned short int val1)`: Faz a operação NOT e retorna um inteiro.
- unsigned short int val1: Valor;`int NAND(unsigned short int val1, unsigned short int val2)`: Faz a operação NAND e retorna um inteiro.
- unsigned short int val1: Primeiro valor;
- unsigned short int val2: Segundo valor;`int NOR(unsigned short int val1, unsigned short int val2)`: Faz a operação NOR e retorna um inteiro.
- unsigned short int val1: Primeiro valor;
- unsigned short int val2: Segundo valor;`int XOR(unsigned short int val1, unsigned short int val2)`: Faz a operação XOR e retorna um inteiro.
- unsigned short int val1: Primeiro valor;
- unsigned short int val2: Segundo valor;`int XNOR(unsigned short int val1, unsigned short int val2)`: Faz a operação XNOR e retorna um inteiro.
- unsigned short int val1: Primeiro valor;
- unsigned short int val2: Segundo valor;