ComSquare
Public Attributes | List of all members
ComSquare::APU::InternalRegisters Struct Reference

#include <APU.hpp>

Collaboration diagram for ComSquare::APU::InternalRegisters:

Public Attributes

uint8_t x
 The X index register. More...
 
union {
   struct {
      uint8_t   a
 The Accumulator register. More...
 
      uint8_t   y
 The Y Index register. More...
 
   } 
 
   uint16_t   ya
 
}; 
 The YA register. More...
 
uint8_t sp
 The Stack pointer register. More...
 
union {
   struct {
      uint8_t   pcl
 
      uint8_t   pch
 
   } 
 
   uint16_t   pc
 
}; 
 The Program counter register. More...
 
union {
   struct {
      bool   c: 1
 Carry flag. More...
 
      bool   z: 1
 Zero flag. More...
 
      bool   i: 1
 Interrupt enabled flag. More...
 
      bool   h: 1
 Half carry flag. More...
 
      bool   b: 1
 Break flag. More...
 
      bool   p: 1
 Direct page flag. More...
 
      bool   v: 1
 Overflow flag. More...
 
      bool   n: 1
 Negative flag. More...
 
   } 
 
   uint8_t   psw
 
}; 
 Program Status Word register. More...
 

Member Data Documentation

◆ @1

union { ... }

The YA register.

◆ @3

union { ... }

The Program counter register.

◆ @5

union { ... }

Program Status Word register.

◆ a

uint8_t ComSquare::APU::InternalRegisters::a

The Accumulator register.

◆ b

bool ComSquare::APU::InternalRegisters::b

Break flag.

◆ c

bool ComSquare::APU::InternalRegisters::c

Carry flag.

◆ h

bool ComSquare::APU::InternalRegisters::h

Half carry flag.

◆ i

bool ComSquare::APU::InternalRegisters::i

Interrupt enabled flag.

◆ n

bool ComSquare::APU::InternalRegisters::n

Negative flag.

◆ p

bool ComSquare::APU::InternalRegisters::p

Direct page flag.

◆ pc

uint16_t ComSquare::APU::InternalRegisters::pc

◆ pch

uint8_t ComSquare::APU::InternalRegisters::pch

◆ pcl

uint8_t ComSquare::APU::InternalRegisters::pcl

◆ psw

uint8_t ComSquare::APU::InternalRegisters::psw

◆ sp

uint8_t ComSquare::APU::InternalRegisters::sp

The Stack pointer register.

◆ v

bool ComSquare::APU::InternalRegisters::v

Overflow flag.

◆ x

uint8_t ComSquare::APU::InternalRegisters::x

The X index register.

◆ y

uint8_t ComSquare::APU::InternalRegisters::y

The Y Index register.

◆ ya

uint16_t ComSquare::APU::InternalRegisters::ya

◆ z

bool ComSquare::APU::InternalRegisters::z

Zero flag.


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