User Tools

Site Tools


notes:asm:notapi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:asm:notapi [2011/01/30 15:39] bh011695notes:asm:notapi [2011/01/30 15:44] (current) bh011695
Line 1: Line 1:
 +====== NOT Class ======
 +The NOT Class implements a functional not gate for use in our CPU Simulator.
 +
 +===== NOT Constructor =====
 +<code c++>NOT myNotGate();</code>
 +
 +^Function ^ Parameter ^ Return Value                                 ^
 +|NOT()    | None      | Pointer/Variable Instantiation of a Not Gate |
 +
 +Parameterless constructor to instantiate a new NOT.
 +
 +===== set(bool) =====
 +Accepts a boolean value and sets input to the value of that parameter.
 +
 +<code c++>myNotGate.set(bool);</code>
 +
 +^Function   ^ Parameter ^ Return Value ^
 +|void set() | bool      | none         |
 +
 +===== get() =====
 +get() will return the output of the NOT.
 +
 +<code c++>myNotGate.get();</code>
 +
 +^Function    ^ Parameter ^ Return Value ^
 +| bool get() | none      | bool         |