522 for(
int c = 0; c < 2; c++)
524 for(
int z = 0; z < 2; z++)
554 for(
int c = 0; c < 2; c++)
556 for(
int z = 0; z < 2; z++)
586 for(
int c = 0; c < 2; c++)
588 for(
int z = 0; z < 2; z++)
618 for(
int c = 0; c < 2; c++)
620 for(
int z = 0; z < 2; z++)
650 for(
int c = 0; c < 2; c++)
652 for(
int z = 0; z < 2; z++)
682 for(
int c = 0; c < 2; c++)
684 for(
int z = 0; z < 2; z++)
691 if((!c & !z) || (c & z))
766 for(
int c = 0; c < 2; c++)
768 for(
int z = 0; z < 2; z++)
803 for(
int c = 0; c < 2; c++)
805 for(
int z = 0; z < 2; z++)
843 for(
int c = 0; c < 2; c++)
845 for(
int z = 0; z < 2; z++)
This class contains atomic steps for the control unit of defined instruction.
Flag
Tristate flag definition for carry and zero control bits.
@ Enable
Only accept the enable value.
@ Disable
Only accept the disable value.
@ ABXY
Main and auxiliary registers.
@ Addr
16 bit unsigned address
@ Val256
8 bit unsigned value
void addStep(const Step &step)
@ ABXY
Main and auxiliary registers.
@ MAH
Memory Address High register.
@ RPC
Reset Program Counter.
@ PCH
Program Counter High register.
@ SP_PLUS
Increse Stack Pointer.
@ MAL
Memory Address Low register.
@ PC_PLUS
Increse Program Counter.
@ RPC_PLUS
Reset the step counter and increse Program Counter.
@ SP_MINUS
Decrese Stack Pointer.
@ PCL
Program Counter Low register.
@ ABXY
Main and auxiliary registers.
@ PCH
Program Counter High register.
@ PCL
Program Counter Low register.
@ MA
Full 16 bit Memory Address register.
@ SP
Full 16 bit Stack Pointer register.
@ XY
Full 16 bit auxiliary register.
static const int INSTRUCTION_QUANTITY
Support only for 256 opcodes.
bool saveFiles(const QString &urom0Path, const QString &urom1Path)
void addInstruction(const Instruction &instruction)
URomData uRomData
uROM data with an opcode table
URom()
Default constructor for creating an uROM. Generating a full instrution set.
bool saveFiles(const QString &urom0Path, const QString &urom1Path)