ArkScript
A small, fast, functional and scripting language for video games
Ark::internal::Word Struct Reference

#include <Word.hpp>

+ Collaboration diagram for Ark::internal::Word:

Public Member Functions

 Word (const uint8_t inst, const uint16_t arg=0)
 

Public Attributes

uint8_t padding = 0
 Padding reserved for future use.
 
uint8_t opcode = 0
 Instruction opcode.
 
union {
   uint16_t   data = 0
 Immediate data, interpreted differently for different instructions. More...
 
   bytes_t   bytes
 
}; 
 

Detailed Description

Definition at line 23 of file Word.hpp.

Constructor & Destructor Documentation

◆ Word()

Ark::internal::Word::Word ( const uint8_t  inst,
const uint16_t  arg = 0 
)
inlineexplicit

Definition at line 32 of file Word.hpp.

Member Data Documentation

◆ 

union { ... } Ark::internal::Word::@1

◆ bytes

bytes_t Ark::internal::Word::bytes

Definition at line 29 of file Word.hpp.

◆ data

uint16_t Ark::internal::Word::data = 0

Immediate data, interpreted differently for different instructions.

Definition at line 28 of file Word.hpp.

◆ opcode

uint8_t Ark::internal::Word::opcode = 0

Instruction opcode.

Definition at line 26 of file Word.hpp.

◆ padding

uint8_t Ark::internal::Word::padding = 0

Padding reserved for future use.

Definition at line 25 of file Word.hpp.


The documentation for this struct was generated from the following file: