#include <arch_int.h>
Public Methods | |
Word_int () | |
Word_int (int i) | |
Word_int (const Op::Code &code) | |
Word_int (const Int_int &i) | |
int | convertToint () const |
Op::Code | convertToCode () const |
Implements unsigned integer aritmetics and conversions:
TODO: Implement integer/word aritmetic correctly
|
Default value 0. |
|
Construcs word from int. Newer fails. |
|
Constructs a word from Op::Code. Assumption: Op::isValid(code). |
|
Constructs a word from an integer. Newer fails. |
|
Convets the word to Op::Code. If the word does not represent any valid code, the value X returned will be such, that !Op::isValid(X).
|
|
Converts the word to int, if possible. May return incorrect result if the result does not fit into int. |