libElysianVMU 1.6.0
Full-featured, accurate, cross-platform library emulating the Dreamcast's Visual Memory Unit
Loading...
Searching...
No Matches
EvmuRom Struct Reference

#include <evmu_rom.h>

Inheritance diagram for EvmuRom:
EvmuPeripheral EvmuIMemory EvmuIBehavior

Data Fields

union { 
 
   EvmuRomClass *   pClass 
 
   EvmuPeripheral   base 
 
};  
 
- Data Fields inherited from EvmuPeripheral
union { 
 
   EvmuPeripheralClass *   pClass 
 
   GblObject   base 
 
};  
 
GblFlags logLevel
 

Related Symbols

(Note that these are not member symbols.)

BIOS State

Methods for querying BIOS configuration and state

GblBool EvmuRom_biosActive (const EvmuRom *pSelf)
 
EVMU_BIOS_TYPE EvmuRom_biosType (const EvmuRom *pSelf)
 
EVMU_BIOS_MODE EvmuRom_biosMode (const EvmuRom *pSelf)
 
BIOS Management

Methods for loading, unloading, and calling BIOS routines

EVMU_RESULT EvmuRom_loadBios (EvmuRom *pSelf, const char *pPath)
 
EVMU_RESULT EvmuRom_unloadBios (EvmuRom *pSelf)
 
EvmuAddress EvmuRom_callBios (EvmuRom *pSelf, EvmuAddress entry)
 
EVMU_RESULT EvmuRom_skipBiosSetup (EvmuRom *pSelf, GblBool enableSkip)
 
Date/Time Management

Methods for querying and setting date/time

GblDateTime * EvmuRom_dateTime (const EvmuRom *pSelf, GblDateTime *pDateTime)
 
EVMU_RESULT EvmuRom_setDateTime (EvmuRom *pSelf, const GblDateTime *pDateTime)
 
Read/Write Accessors

Methods for reading and writing ROM data

EvmuWord EvmuRom_readByte (const EvmuRom *pSelf, EvmuAddress address)
 
EVMU_RESULT EvmuRom_readBytes (const EvmuRom *pSelf, EvmuAddress address, void *pData, size_t *pSize)
 
EVMU_RESULT EvmuRom_writeByte (EvmuRom *pSelf, EvmuAddress address, EvmuWord byte)
 
EVMU_RESULT EvmuRom_writeBytes (EvmuRom *pSelf, EvmuAddress address, const void *pData, size_t *pSize)
 

Detailed Description

Peripheral managing ROM, firmware calls, and BIOS images.

There are no public members.

See also
EvmuRomClass

Definition at line 116 of file evmu_rom.h.

Friends And Related Symbol Documentation

◆ EvmuRom_biosActive()

GblBool EvmuRom_biosActive ( const EvmuRom * pSelf)
related

Returns GBL_TRUE if the CPU is currently executing code from the BIOS.

◆ EvmuRom_biosMode()

EVMU_BIOS_MODE EvmuRom_biosMode ( const EvmuRom * pSelf)
related

Returns the mode the BIOS is in (file manager, game, clock, etc)

◆ EvmuRom_biosType()

EVMU_BIOS_TYPE EvmuRom_biosType ( const EvmuRom * pSelf)
related

Returns the type of BIOS currently loaded into ROM.

◆ EvmuRom_callBios()

EvmuAddress EvmuRom_callBios ( EvmuRom * pSelf,
EvmuAddress entry )
related

Makes a firmware or BIOS subroutine call at the entry point given by entry.

◆ EvmuRom_dateTime()

GblDateTime * EvmuRom_dateTime ( const EvmuRom * pSelf,
GblDateTime * pDateTime )
related

Returns the current date and time as seen by the BIOS.

◆ EvmuRom_loadBios()

EVMU_RESULT EvmuRom_loadBios ( EvmuRom * pSelf,
const char * pPath )
related

Loads a BIOS image from the path given by pPath.

◆ EvmuRom_readByte()

EvmuWord EvmuRom_readByte ( const EvmuRom * pSelf,
EvmuAddress address )
related

Returns the byte value located at the given ROM address.

◆ EvmuRom_readBytes()

EVMU_RESULT EvmuRom_readBytes ( const EvmuRom * pSelf,
EvmuAddress address,
void * pData,
size_t * pSize )
related

Reads pSize bytes from ROM into pData, starting at address, writing back the number of bytes read.

◆ EvmuRom_setDateTime()

EVMU_RESULT EvmuRom_setDateTime ( EvmuRom * pSelf,
const GblDateTime * pDateTime )
related

Sets the current date and time as seen by the BIOS to the value given by pDateTime.

◆ EvmuRom_skipBiosSetup()

EVMU_RESULT EvmuRom_skipBiosSetup ( EvmuRom * pSelf,
GblBool enableSkip )
related

Enables or disables skipping the BIOS date/time setup based on the value of enableSkip.

◆ EvmuRom_unloadBios()

EVMU_RESULT EvmuRom_unloadBios ( EvmuRom * pSelf)
related

Unloads any currently-loaded BIOS image, returning to software emulation.

◆ EvmuRom_writeByte()

EVMU_RESULT EvmuRom_writeByte ( EvmuRom * pSelf,
EvmuAddress address,
EvmuWord byte )
related

Writes the byte value to the ROM address.

◆ EvmuRom_writeBytes()

EVMU_RESULT EvmuRom_writeBytes ( EvmuRom * pSelf,
EvmuAddress address,
const void * pData,
size_t * pSize )
related

Writes pSize bytes to ROM from pData, starting at address, writing back the number of bytes written.

Field Documentation

◆ base

EvmuPeripheral EvmuRom::base

Inherited base instance structure.

Definition at line 116 of file evmu_rom.h.

◆ pClass

EvmuRomClass* EvmuRom::pClass

Pointer to class/vtable structure.

Definition at line 116 of file evmu_rom.h.


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