user:mfaucet2:portfolio:asmproject2
Table of Contents
Project: OR Function
Computer Organization by Mason Faucett, Spring 2013.
Objectives
The purpose of this project is to learn what anding does without using the built in symbols in C/C++.
Prerequisites
In order to do this project there is some knowledge and items required:
- Knowledge of C/C++.
- A PC with an operating system on it.
- A C/C++ compiler.
Code
Upon completion of the project, if there is an applicable collection of created code, place a copy of your finished code within <code> </code> blocks here.
int OR(input1, input2){ int output; if(input1 == 1){ if(input2 == 1){ output = 1; } } if(input1 == 1){ if(input2 == 0){ output = 1; } } if(input1 == 0){ if(input2 == 0){ output = 0; } }
Execution
This file isn't ment to run by itself but it does run in another program with other functions, these functions will be mentioned in the other ASM projects.
In main function. Please input first number. 1 value of input1 is 1. Please input second number. 1 value of input2 is 1. 1. In main function. output of OR function, 1.
References
In performing this project, the following resources were referenced:
- JOE
- MATT
user/mfaucet2/portfolio/asmproject2.txt · Last modified: 2013/04/26 09:39 by mfaucet2