module Z80::MathInt::Integers
Z80::MathInt
Integers
¶ ↑
This module holds integer data types created on the fly by the Macros.int
macro. The types differ only in byte size. The fields of each of the type are:
bytes
-
This field provides access to individual bytes of the binary integer.
words
-
This field provides access to individual words of the binary integer, it's being defined only when the bit size of the type is a multiple of 16.
E.g.:
ld hl, [somebigint.words[1]] ld de, [somebigint.words[0]] # hl|de now holds a 32-bit integer # ... somebigint int 32, -1