MIXAL
Classes | Variables
memory.h File Reference

The definition of a computer word. More...

#include <cstdint>
#include <string>

Go to the source code of this file.

Classes

struct  mixal::ComputerWord
 

Variables

uint16_t mixal::CHAR_CODES []
 
const int32_t mixal::CHAR_CODES_NUM = 56
 

Detailed Description

The definition of a computer word.

Definition in file memory.h.

Variable Documentation

◆ CHAR_CODES

uint16_t mixal::CHAR_CODES
Initial value:
= {
' ', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I',
0xb4, 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
0x2da, 0x2dd, 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'.', ',', '(', ')', '+', '-', '*', '/', '=', '$',
'<', '>', '@', ';', ':', 0x201a
}

The mapping from a byte to the characters.

Definition at line 9 of file memory.cpp.

Referenced by mixal::ComputerWord::getCharacters(), and mixal::ComputerWord::set().

◆ CHAR_CODES_NUM

const int32_t mixal::CHAR_CODES_NUM = 56

The maximum number of characters in the mapping.

Definition at line 17 of file memory.h.

Referenced by mixal::ComputerWord::getCharacters(), and mixal::ComputerWord::set().