GBA

class GBA

This is the class representing the entire device.

See Also

Memory CPU PPU DMAChannels Timers Palettes OAMSprites

Summary
GBAThis is the class representing the entire device.
Variables
cpuThe core of the device.
memoryAnother core of the device.
ppuAnother core of the device.
dmaDMAChannels.
timersTimers.
palettesPalettes (It is actually plural, since it represent a set of Palette).
spritesInterpretation of the OAM memory.
Functions
GBABuilds a GameBoyAdvance.
LoadBiosLoads the bios into its memory space (0x00000000-0x02000000) reading data from a file.
InsertCartridgeFills the ROM memory reading data from a file.
StartStarts GBA execution.
StartDebugStarts GBA execution with a debugger (slower than Start).
StartDisasmOld OBSOLETE function.

Variables

cpu

CPU cpu

The core of the device.  Interprets and executes instructions.

memory

Memory memory

Another core of the device.  Our warehouse of emulated informations.

ppu

PPU ppu

Another core of the device.  Without this, almost all the emulation is useless.  Draws images.

dma

DMAChannels dma

DMAChannels.  Allow fast memory blocks transfers.  This is what makes sound and video recording possible.  Skips the slow cpu load/store overhead.

timers

Timers timers

Timers.  Useful to make things happen only when they should.

palettes

Palettes palettes

Palettes (It is actually plural, since it represent a set of Palette).  It is the interpretation of the pram in Memory.

sprites

OAMSprites sprites

Interpretation of the OAM memory.

Functions

GBA

GBA()

Builds a GameBoyAdvance.

LoadBios

bool LoadBios(char *filename)

Loads the bios into its memory space (0x00000000-0x02000000) reading data from a file.

Parameters

filenameThe name of the file that contains the bios.

Returns

False if the file doesn’t exist.  True otherwise.

InsertCartridge

bool InsertCartridge(char *fileName)

Fills the ROM memory reading data from a file.

Parameters

fileNameThe name of the file that contains the ROM.

Returns

False if the file doesn’t exist.  True otherwise.

Start

void Start()

Starts GBA execution.

See Also

StartDebug

StartDebug

void StartDebug()

Starts GBA execution with a debugger (slower than Start).

StartDisasm

void StartDisasm()

Old OBSOLETE function.  Do not use it.  Starts the GBA in a SLOW and without features debugging mode.

class GBA
This is the class representing the entire device.
CPU cpu
The core of the device.
Memory memory
Another core of the device.
PPU ppu
Another core of the device.
DMAChannels dma
DMAChannels.
Timers timers
Timers.
Palettes palettes
Palettes (It is actually plural, since it represent a set of Palette).
OAMSprites sprites
Interpretation of the OAM memory.
GBA()
Builds a GameBoyAdvance.
bool LoadBios(char *filename)
Loads the bios into its memory space (0x00000000-0x02000000) reading data from a file.
bool InsertCartridge(char *fileName)
Fills the ROM memory reading data from a file.
void Start()
Starts GBA execution.
void StartDebug()
Starts GBA execution with a debugger (slower than Start).
void StartDisasm()
Old OBSOLETE function.
struct Memory
Represents the entire address space of the GBA.
class CPU
This class represents an ARM7TDMI CPU running at 16.78MHZ with 32 bit registers and two execution modes (ARM32bit, THUMB16bit).
class PPU
This class represents the Picture Processing Unit of the GBA Functions in here are mostly inline utilities to make code inside renderers understandable.
class DMAChannels
DMA stands for Direct Memory Access.
class Timers
Easy interface to do operations with timers and their registers.
class Palettes
Represents the full set of palettes.
class OAMSprites
Builds and handles all OAMSprites and OAMTransformGroups contained in OAM memory.
Close