Constructor
new Word(nb_blocks)
constructs a new instance of Word
Parameters:
Name | Type | Description |
---|---|---|
nb_blocks |
the number of hexadecimal values held by this Word |
- Source:
Methods
copy(other, from, to)
Copy the selected values from an other memory
If the calculator is in decimal mode, only ten's complement values will be copied
Parameters:
Name | Type | Description |
---|---|---|
other |
the other memory from which values will be copied | |
from |
which block index should the copy start from, should be positive and inferior to 12 | |
to |
where should the copy end (excluded), should be inferior or equal to 12 |
- Source:
resetWord(from, to)
Set every memory block in range to 0
Parameters:
Name | Type | Description |
---|---|---|
from |
start index of the selected memory blocks, should be positive or zero | |
to |
end index (excluded) of the selected memory blocks, should be inferior to NB_CHRS_PER_WORD |
- Source:
setContent(hexCode)
Set the Word's content with hex values
Parameters:
Name | Type | Description |
---|---|---|
hexCode |
a String that represents the new hex values of this Word |
- Source: