All Packages Class Hierarchy This Package Previous Next Index
Interface duckMachine.architecture.ALUI
- public interface ALUI
The specification of the arithmetic and logic unit of the machine.
-
add(Word, Word)
-
-
compare(Word, Word)
- Sets the condition flags according to the result of comparing
w1 and w2.
If w1>w2 then GT should be set and the other flags made FALSE.
If w1=w2 then EQ should be set and the other flags made FALSE.
If w1>w2 then LT should be set and the other flags made FALSE.
-
dec(Word)
-
-
fetchEQ()
- Returns the current contents of the EQ flag.
-
fetchGT()
- Returns the current contents of the GT flag.
-
fetchLT()
- Returns the current contents of the LT flag.
-
inc(Word)
-
-
sub(Word, Word)
-
fetchGT
public abstract boolean fetchGT()
- Returns the current contents of the GT flag.
fetchEQ
public abstract boolean fetchEQ()
- Returns the current contents of the EQ flag.
fetchLT
public abstract boolean fetchLT()
- Returns the current contents of the LT flag.
add
public abstract Word add(Word w1,
Word w2)
sub
public abstract Word sub(Word w1,
Word w2)
inc
public abstract Word inc(Word w)
dec
public abstract Word dec(Word w)
compare
public abstract void compare(Word w1,
Word w2)
- Sets the condition flags according to the result of comparing
w1 and w2.
If w1>w2 then GT should be set and the other flags made FALSE.
If w1=w2 then EQ should be set and the other flags made FALSE.
If w1>w2 then LT should be set and the other flags made FALSE.
All Packages Class Hierarchy This Package Previous Next Index