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.


Method Index

 o add(Word, Word)
 o 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.
 o dec(Word)
 o fetchEQ()
Returns the current contents of the EQ flag.
 o fetchGT()
Returns the current contents of the GT flag.
 o fetchLT()
Returns the current contents of the LT flag.
 o inc(Word)
 o sub(Word, Word)

Methods

 o fetchGT
 public abstract boolean fetchGT()
Returns the current contents of the GT flag.

 o fetchEQ
 public abstract boolean fetchEQ()
Returns the current contents of the EQ flag.

 o fetchLT
 public abstract boolean fetchLT()
Returns the current contents of the LT flag.

 o add
 public abstract Word add(Word w1,
                          Word w2)
 o sub
 public abstract Word sub(Word w1,
                          Word w2)
 o inc
 public abstract Word inc(Word w)
 o dec
 public abstract Word dec(Word w)
 o 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