This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:mfaucet2:portfolio:asmproject3 [2013/04/26 13:38] – mfaucet2 | user:mfaucet2:portfolio:asmproject3 [2013/04/26 13:41] (current) – mfaucet2 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Project: | ||
+ | |||
+ | 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 c> | ||
+ | int NOT1(input1){ | ||
+ | |||
+ | int output; | ||
+ | |||
+ | if(input1 == 1){ | ||
+ | output = 0; | ||
+ | }else{ | ||
+ | output = 1; | ||
+ | } | ||
+ | return output; | ||
+ | } | ||
+ | |||
+ | int NOT2(input2){ | ||
+ | |||
+ | int output; | ||
+ | |||
+ | if(input2 == 1){ | ||
+ | output = 0; | ||
+ | }else{ | ||
+ | output = 1; | ||
+ | } | ||
+ | |||
+ | return output; | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====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. | ||
+ | 0 | ||
+ | value of input2 is 0. | ||
+ | 0. | ||
+ | In main function. | ||
+ | output of the first NOT function, 0. | ||
+ | output of the second NOT function, 1. | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====References===== | ||
+ | In performing this project, the following resources were referenced: | ||
+ | |||
+ | * JOE | ||
+ | * MATT | ||