Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 AfterTransferChecks, dma_data
C
 CheckIOAccess, Memory
 CheckVMatch, PPU
 ClearHBlank, PPU
 ClearVBlank, PPU
 ComputeWaitStates, Memory
 ComputeWaitStatesAB, Memory
 CpsrGetCarry, CPU
 CpsrGetFIQDisable, CPU
 CpsrGetIRQDisable, CPU
 CpsrGetMode, CPU
 CpsrGetOverflow, CPU
 CpsrGetSign, CPU
 CpsrGetThumbMode, CPU
 CpsrGetZero, CPU
 CpsrSetCarry, CPU
 CpsrSetCarryByAddVals, CPU
 CpsrSetFIQDisable, CPU
 CpsrSetIRQDisable, CPU
 CpsrSetMode, CPU
 CpsrSetOverflow, CPU
 CpsrSetOverflowByVals, CPU
 CpsrSetSign, CPU
 CpsrSetSignByVal, CPU
 CpsrSetThumbMode, CPU
 CpsrSetZero, CPU
 CpsrSetZeroByVal, CPU
 CPU, CPU
D
 DebuggerInterface, DebuggerInterface
 DMAChannels, dma_data
 draw
 Draw
 draw_obj
 draw_obj_rot
 DrawIdle, PPU
E
 Evaluate
 ExecuteOperation, CPU
 ExecuteThumbAluOperation, CPU
 ExecuteTransfer, dma_data
G
 GBA, GBA
 gbaFunc
 GetA0B9, OAMSprite
 GetAddress, Memory
 GetBGMode, PPU
 GetBLDYEvy, PPU
 getByID, Tile4
 getByXY, Tile4
 GetConsumedCycles, dma_data
 GetControl
 GetCount, timer_data
 GetCountUpTiming, timer_data
 GetCP, OAMSprite
 GetCpsr, CPU
 GetDestAddrOperation, dma_data
 GetDestinationAddr, dma_data
 GetDISPCNT, PPU
 GetDISPSTAT, PPU
 GetDMAEnabled, dma_data
 GetDRQ, dma_data
 GetFirstFrame, PPU
 GetFlipX, OAMSprite
 GetFlipY, OAMSprite
 GetGPRegisterID, CPU
 GetGPRegValue, CPU
 getHigherNibble, Tile4
 GetIORam
 GetIRQEnabled
 getLowerNibble, Tile4
 GetMemory, PPU
 GetMosaic, OAMSprite
 GetObjMode, OAMSprite
 GetObjShape, OAMSprite
 GetObjSizeID, OAMSprite
 GetObjTilesMemory, PPU
 GetOperationName, CPU
 GetPaletteBG, Palettes
 GetPaletteID, OAMSprite
 GetPaletteOBJ, Palettes
 GetPalettes, PPU
 GetPPU, MainWindow
 GetPrefetch, CPU
 GetPrescalerSelection, timer_data
 GetPrescalerSelectionIndex, timer_data
 GetPriority, OAMSprite
 GetRepeat, dma_data
 GetRSFlag, OAMSprite
 GetRSGroup, OAMSprite
 GetSecondFrame, PPU
 GetSelectedSecondFrame, PPU
 GetShadersCode, MainWindow
 GetSize, Memory
 GetSourceAddr, dma_data
 GetSourceAddrOperation, dma_data
 GetSprite, OAMSprites
 GetSprites, PPU
 GetSpsrID, CPU
 GetSpsrVal, CPU
 GetStartCondition, dma_data
 GetStartTiming, dma_data
 GetTileID, OAMSprite
 GetTimerState, timer_data
 GetTransformationGroupPart, OAMSprites
 GetTransformGroup, OAMSprites
 GetUnitSize, dma_data
 GetVBlank, PPU
 GetVRam, PPU
 GetWordsCount, dma_data
 getWSCount, Memory
 GetX, OAMSprite
 GetY, OAMSprite
inline void AfterTransferChecks(int chan)
Computes if, after a transfer, a dma has finished its transfer, if it shall be re-enabled, if there’re addresses that have to be reloaded..
inline void CheckIOAccess()
Does all the operations needed after an IO access.
inline void CheckVMatch()
Generates an interrupt if VCOUNT is equal to LYC.
inline void ClearHBlank()
Clears HBLANK Flag.
inline void ClearVBlank()
Clears VBlank Flag.
inline int ComputeWaitStates(int cyclesS,  
int cyclesN,  
int accessWidth = 2)
Computes the wait states of the last memory access.
inline int ComputeWaitStatesAB(uint32_t addr,  
int cyclesS,  
int cyclesN,  
int accessWidth = 2)
Computes the WaitStates given an address.
inline bool CpsrGetCarry()
Getter for the Carry Flag.
inline bool CpsrGetFIQDisable()
Getter for the Fast Interrupt Disable Flag.
inline bool CpsrGetIRQDisable()
Getter for the Interrupt Disable Flag.
inline int CpsrGetMode()
Getter for the CPU Mode.
inline bool CpsrGetOverflow()
Getter for the Overflow Flag.
inline bool CpsrGetSign()
Getter for the Sign Flag.
inline bool CpsrGetThumbMode()
Getter for the Thumb Mode Flag.
inline bool CpsrGetZero()
Getter for the Zero Flag.
inline void CpsrSetCarry(bool value)
Setter for the Carry Flag.
inline void CpsrSetCarryByAddVals(int op1,
int op2,
int res)
Sets the carry flag looking at the operands of an addition.
inline void CpsrSetFIQDisable(bool value)
Setter for the F Flag.
inline void CpsrSetIRQDisable(bool value)
Setter for the I Flag.
inline void CpsrSetMode(int value)
Setter for the Mode field of the CPSR.
inline void CpsrSetOverflow(bool value)
Setter for the Overflow Flag.
inline void CpsrSetOverflowByVals(int op1,
int op2,
int res)
Sets the overflow flag looking at the operands.
inline void CpsrSetSign(bool value)
Setter for the Sign Flag.
inline void CpsrSetSignByVal(int val)
Sets the sign flag according to a value.
inline void CpsrSetThumbMode(bool value)
Setter for the T Flag.
inline void CpsrSetZero(bool value)
Setter for the Zero Flag.
inline void CpsrSetZeroByVal(int val)
Sets the zero flag according to a value.
CPU(Memory *mem)
Initializes the CPU.
DebuggerInterface(Memory *_mem,  
CPU *_cpu,  
bool startTrace = false)
Initializes the interface.
DMAChannels(Memory *mem,
CPU *cpu)
Initializes the channels
inline void draw(Palettes *palette,
int palID,
int fromX,
int toX,
int fromY,
int toY,
bool flipX,
bool flipY,
uint16_t *outBuffer)
Draws the tile
inline void draw(Palettes *palette,
int fromX,
int toX,
int fromY,
int toY,
bool flipX,
bool flipY,
uint16_t *outBuffer)
Draws the tile.
void Draw()
Draws all the windows in the terminal.
void Draw()
Draws the video buffer with openGL.
inline void draw_obj(Palettes *palette,
int palID,
int fromX,
int toX,
int fromY,
int toY,
bool flipX,
bool flipY,
uint16_t *outBuffer,
uint8_t *outPriority,
int priorityValue)
Draws the sprite tile.
inline void draw_obj(Palettes *palette,
int fromX,
int toX,
int fromY,
int toY,
bool flipX,
bool flipY,
uint16_t *outBuffer,
uint8_t *outPriority,
int priorityValue)
Draws the sprite tile
inline void draw_obj_rot(Palettes *palette,
int palID,
int xOff,
int yOff,
int pa,
int pb,
int pc,
int pd,
uint16_t *outBuffer,
uint8_t *outPriority,
int priorityValue)
Draws the sprite (rotated) tile
inline void draw_obj_rot(Palettes *palette,
int xOff,
int yOff,
int pa,
int pb,
int pc,
int pd,
uint16_t *outBuffer,
uint8_t *outPriority,
int priorityValue)
Draws the sprite (rotated) tile
inline void DrawIdle(int count)
Performs PPU idle operations.
bool Evaluate(Memory *mem,
CPU *cpu,
int address)
Evaluates break condition.
bool Evaluate(int address)
Evaluates all the breakrules.
int ExecuteOperation()
Executes the next operation.
inline void ExecuteThumbAluOperation(int op,
int rd,
int op1,
int op2)
Executes an Alu operation in THUMB Mode.
inline void ExecuteTransfer(int chan)
Executes a DMA Transfer.
GBA()
Builds a GameBoyAdvance.
void* gbaFunc(void *args)
GBA emulation thread entry point
inline bool GetA0B9()
Gets bit 9.
inline void* GetAddress(uint32_t addr)
Returns the in-system address associated to the emulated address.
inline int GetBGMode()
Contained in DISPCNT.
inline float GetBLDYEvy()
Computes Evy factor for backgrounds effects (from BLDY register).
inline int getByID(int i)
inline int getByXY(int x,
int y)
inline int GetConsumedCycles()
Checks how many cycles has the dma consumed.
inline uint16_t GetControl(int chan)
Retrieves the control register of a DMAChannel.
inline int GetControl(int index)
Gets the Control register of the timer.
inline uint16_t GetCount(int index)
Retrieves a timer’s counter.
inline bool GetCountUpTiming(int index)
When countup timing is enabled in a timer, when it overflows, it increases the next one value.
inline bool GetCP()
True if 8bit tiles shall be used, False if 4 bit tiles shall be used.
inline uint32_t GetCpsr()
Retrieve Current Program Status Register
inline int GetDestAddrOperation(int chan)
Returns the destination address operation of the DMAChannel.
inline uint32_t GetDestinationAddr(int chan)
Retrieves the destination address of a DMAChannel.
inline uint16_t GetDISPCNT()
The DISPCNT register contains information about rendering (e.g.
inline uint16_t GetDISPSTAT()
The DISPSTAT register contains the LYC (vertical match register) and things like HBLANK flag, VBLANK flag, ....
inline bool GetDMAEnabled(int chan)
Checks if a DMA channel is enabled.
inline bool GetDRQ(int chan)
Returns the DRQ Flag of the DMAChannel.
inline unsigned char* GetFirstFrame()
The first frame in rendering modes 3-4-5.
inline int GetFlipX()
True if the sprite has to be flipped horizontally.
inline int GetFlipY()
True if the sprite has to be flipped vertically.
inline int GetGPRegisterID(int regid,
int mode)
Gets the id of a GP register depending on the current mode.
inline uint32_t GetGPRegValue(int regid,  
int pcOff =  8)
Returns the value contained inside a register (in the current mode).
inline int getHigherNibble(int i)
inline ASICRegisters* GetIORam()
Gets IORam converted to the ASICRegister structure.
inline ASICRegisters* GetIORam()
The IORam of the GBA associated to the PPU.
inline bool GetIRQEnabled(int chan)
Returns if DMA interrupts are enabled for a channel.
inline bool GetIRQEnabled(int index)
Gets if interrupts for a timer overflow are enabled.
inline int getLowerNibble(int i)
inline Memory* GetMemory()
The memory of the GBA associated to the PPU.
True if Mosaic Effect is enabled for this sprite.
inline int GetObjMode()
0=Normal, 1=Semi-Transparent, 2=Obj-Window
inline int GetObjShape()
0=square, 1=horizontal, 2=vertical
inline int GetObjSizeID()
Returns the size ID.
inline void* GetObjTilesMemory()
Unimplemented.
void GetOperationName(char *buffer,  
int opcode,  
int opaddr,  
bool thumb =  false,
char *comment = nullptr)
Converts arm opcode into assembly language.
inline Palette* GetPaletteBG (int section,
int id)
Retrieves the color of a background palette.
inline int GetPaletteID()
The ID of the palette that has to be used in Tile4 mode.
inline Palette* GetPaletteOBJ(int section,
int id)
Retrieves the color of a sprite palette.
inline Palettes* GetPalettes()
The Palettes of the GBA associated to the PPU.
inline PPU* GetPPU()
Retrieves the ppu associated to this Window.
inline uint32_t GetPrefetch()
Retrieves pipeline prefetch.
inline int GetPrescalerSelection(int index)
Gets Prescaler selection.
inline int GetPrescalerSelectionIndex(int index)
Gets The prescaler selection index of a timer.
inline int GetPriority()
The priority relative to backgrounds.
inline bool GetRepeat(int chan)
Returns the repeat flag of the DMAChannel.
inline bool GetRSFlag()
Returns true if rotation/scale are used.
inline int GetRSGroup()
There are 32 transform groups for 128 sprites.
inline unsigned char* GetSecondFrame()
The second frame in rendering modes 3-4-5.
inline bool GetSelectedSecondFrame()
For Render modes 4-5.
void GetShadersCode(char *vs,
char *fs)
Gets the shaders code to draw a full screen quad.
uint32_t GetSize()
Computes the size of the emulated memory.
inline uint32_t GetSourceAddr(int chan)
Retrieves the source address of a DMAChannel.
inline int GetSourceAddrOperation(int chan)
Returns the source address operation of the DMAChannel.
inline OAMSprite* GetSprite(int id)
inline OAMSprites* GetSprites()
The Sprites of the GBA associated to the PPU.
inline int GetSpsrID(int mode)
Gets the ID of the register SPSR with a particular mode.
inline int GetSpsrVal()
Retrieves the value of SPSR.
inline bool GetStartCondition(int chan)
Check if the DMA Channel should start execution
inline int GetStartTiming(int chan)
Returns the start condition of the DMAChannel.
inline int GetTileID()
The id of the upper-left tile.
inline bool GetTimerState(int index)
Retrieves a timer’s state.
inline uint16_t* GetTransformationGroupPart(int id)
Every part is located at 0x8 offset starting at 0x6.
inline OAMTransformGroup* GetTransformGroup(int id)
inline bool GetUnitSize(int chan)
Returns the word size of the DMAChannel.
inline bool GetVBlank()
True if VBlank Flag is set.
inline int8_t* GetVRam()
The VRAM of the GBA associated to the PPU.
inline uint16_t GetWordsCount(int chan)
Retrieves the transfer words count of a DMAChannel.
inline int getWSCount(int id)
inline int GetX()
The X-coordinate of the sprite.
inline int GetY()
The Y-coordinate of the sprite.
Close