This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:asm:notapi [2011/01/30 15:43] – bh011695 | notes: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();</ | ||
+ | |||
+ | ^Function ^ Parameter ^ Return Value ^ | ||
+ | |NOT() | ||
+ | |||
+ | Parameterless constructor to instantiate a new NOT. | ||
+ | |||
+ | ===== set(bool) ===== | ||
+ | Accepts a boolean value and sets input to the value of that parameter. | ||
+ | |||
+ | <code c++> | ||
+ | |||
+ | ^Function | ||
+ | |void set() | bool | none | | ||
+ | |||
+ | ===== get() ===== | ||
+ | get() will return the output of the NOT. | ||
+ | |||
+ | <code c++> | ||
+ | |||
+ | ^Function | ||
+ | | bool get() | none | bool | | ||