ComSquare
Public Member Functions | Public Attributes | List of all members
ComSquare::Cartridge::Header Struct Reference

#include <Cartridge.hpp>

Collaboration diagram for ComSquare::Cartridge::Header:

Public Member Functions

 Header ()=default
 
 Header (const Header &)=default
 
Headeroperator= (const Header &)=default
 
 ~Header ()=default
 

Public Attributes

std::string gameName
 The name of the game. More...
 
MappingMode mappingMode {}
 The memory mapping of the ROM. More...
 
uint8_t romType = 0
 The rom type (special information about the rom, still don't know what). More...
 
unsigned romSize = 0
 The size (in bytes) of the ram. More...
 
unsigned sramSize = 0
 The size of the SRom inside the cartridge. More...
 
union {
   uint8_t   creatorIDs [2]
 
   uint16_t   creatorID = 0
 
}; 
 Creator license ID code. More...
 
uint8_t version = 0
 The version of the game. More...
 
union {
   uint8_t   checksumComplements [2]
 
   uint16_t   checksumComplement = 0
 
}; 
 Checksum complement. More...
 
union {
   uint8_t   checksums [2]
 
   uint16_t   checksum = 0
 
}; 
 Checksum. More...
 
InterruptVectors nativeInterrupts {}
 The interrupt vectors used to halt the CPU in native mode. More...
 
InterruptVectors emulationInterrupts {}
 The interrupt vectors used to halt the CPU in emulation mode. More...
 

Constructor & Destructor Documentation

◆ Header() [1/2]

ComSquare::Cartridge::Header::Header ( )
default

◆ Header() [2/2]

ComSquare::Cartridge::Header::Header ( const Header )
default

◆ ~Header()

ComSquare::Cartridge::Header::~Header ( )
default

Member Function Documentation

◆ operator=()

Header& ComSquare::Cartridge::Header::operator= ( const Header )
default

Member Data Documentation

◆ @21

union { ... }

Creator license ID code.

◆ @23

union { ... }

Checksum complement.

◆ @25

union { ... }

Checksum.

◆ checksum

uint16_t ComSquare::Cartridge::Header::checksum = 0

◆ checksumComplement

uint16_t ComSquare::Cartridge::Header::checksumComplement = 0

◆ checksumComplements

uint8_t ComSquare::Cartridge::Header::checksumComplements[2]

◆ checksums

uint8_t ComSquare::Cartridge::Header::checksums[2]

◆ creatorID

uint16_t ComSquare::Cartridge::Header::creatorID = 0

◆ creatorIDs

uint8_t ComSquare::Cartridge::Header::creatorIDs[2]

◆ emulationInterrupts

InterruptVectors ComSquare::Cartridge::Header::emulationInterrupts {}

The interrupt vectors used to halt the CPU in emulation mode.

◆ gameName

std::string ComSquare::Cartridge::Header::gameName

The name of the game.

◆ mappingMode

MappingMode ComSquare::Cartridge::Header::mappingMode {}

The memory mapping of the ROM.

◆ nativeInterrupts

InterruptVectors ComSquare::Cartridge::Header::nativeInterrupts {}

The interrupt vectors used to halt the CPU in native mode.

◆ romSize

unsigned ComSquare::Cartridge::Header::romSize = 0

The size (in bytes) of the ram.

◆ romType

uint8_t ComSquare::Cartridge::Header::romType = 0

The rom type (special information about the rom, still don't know what).

◆ sramSize

unsigned ComSquare::Cartridge::Header::sramSize = 0

The size of the SRom inside the cartridge.

◆ version

uint8_t ComSquare::Cartridge::Header::version = 0

The version of the game.


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