XiPU uROM Generator
UCode Class Reference

This class contains a parsed microcode of the single step. More...

#include <ucode.h>

Collaboration diagram for UCode:
[legend]

Public Member Functions

 UCode ()
 
 UCode (unsigned char code0, unsigned char code1)
 
unsigned char getCode0 () const
 
unsigned char getCode1 () const
 

Private Attributes

QVector< unsigned char > code = QVector<unsigned char>(2)
 Low and high bytes of the microcode. More...
 

Detailed Description

This class contains a parsed microcode of the single step.

Definition at line 18 of file ucode.h.

Constructor & Destructor Documentation

◆ UCode() [1/2]

UCode::UCode ( )

Default constructor. It creates an object filled by zeros

Definition at line 18 of file ucode.cpp.

19 {
20  this->code[0] = 0;
21  this->code[1] = 0;
22 }
QVector< unsigned char > code
Low and high bytes of the microcode.
Definition: ucode.h:28

References code.

◆ UCode() [2/2]

UCode::UCode ( unsigned char  code0,
unsigned char  code1 
)

Constructor using for create a parsed microcode of the single step based on an input data

Parameters
code0Low parsed microcode part
code1High parsed microcode part

Definition at line 30 of file ucode.cpp.

31 {
32  this->code[0] = code0;
33  this->code[1] = code1;
34 }

References code.

Member Function Documentation

◆ getCode0()

unsigned char UCode::getCode0 ( ) const

Get a value of the low microcode part

Returns
Low microcode part

Definition at line 41 of file ucode.cpp.

42 {
43  return(this->code[0]);
44 }

References code.

Referenced by URomData::addInstruction().

Here is the caller graph for this function:

◆ getCode1()

unsigned char UCode::getCode1 ( ) const

Get a value of the high microcode part

Returns
High microcode part

Definition at line 51 of file ucode.cpp.

52 {
53  return(this->code[1]);
54 }

References code.

Referenced by URomData::addInstruction().

Here is the caller graph for this function:

Field Documentation

◆ code

QVector<unsigned char> UCode::code = QVector<unsigned char>(2)
private

Low and high bytes of the microcode.

Definition at line 28 of file ucode.h.

Referenced by getCode0(), getCode1(), and UCode().


The documentation for this class was generated from the following files: