1 #ifndef INCLUDE_MEMORY_H_
2 #define INCLUDE_MEMORY_H_
46 ComputerWord(
bool _negative, uint8_t _byte1, uint8_t _byte2, uint8_t _byte3, uint8_t _byte4, uint8_t _byte5);
51 ComputerWord(
char sign, uint8_t _byte1, uint8_t _byte2, uint8_t _byte3, uint8_t _byte4, uint8_t _byte5);
56 ComputerWord(
bool _negative, uint16_t
bytes12, uint8_t _byte3, uint8_t _byte4, uint8_t _byte5);
94 uint16_t
bytes2(
int index1,
int index2)
const;
119 int32_t
value()
const;
140 inline uint8_t
index()
const {
return byte3; }
147 inline uint8_t
field()
const {
return byte4; }
197 void set(
const std::string& chars);
207 void set(
bool negative, uint8_t byte1, uint8_t byte2, uint8_t byte3, uint8_t byte4, uint8_t byte5);
212 void set(
char sign, uint8_t byte1, uint8_t byte2, uint8_t byte3, uint8_t byte4, uint8_t byte5);
219 void set(
bool negative, uint16_t
bytes12, uint8_t byte3, uint8_t byte4, uint8_t byte5);
228 void set(
char sign, uint16_t
bytes12, uint8_t byte3, uint8_t byte4, uint8_t byte5);
234 #endif // INCLUDE_MEMORY_H_