Translations of this page:

Pages tagged with "reference"

This is a list of pages that have been tagged with “reference”.

PageDescriptionTags
Imgtool Imgtool is used to access files stored in native disk images. For example, you can manipulate Apple II disks and extract files, or rename a file on a VZ200 disk. Modules To add support for a new format, you have to write an imgtool module. Those modules implement various functions that are then called by imgtool to perform the specific task. Those functions are: , , ,
SYSTEM_CONFIG The SYSTEM_CONFIG macro is used by MESS drivers to provide info about devices and the ram size. Syntax CONFIG_RAM and CONFIG_RAM_DEFAULT When the CONFIG_RAM and/or CONFIG_RAM_DEFAULT options are used in a driver then the MESS framework will make sure the following global variables are set and ready for use by the driver: , ,
cpunum_set_input_line() Set the logical state of the an input line on a CPU. Syntax Declaration Declared in src/emu/cpuint.h as void cpunum_set_input_line(running_machine *machine, int cpunum, int line, int state); Parameters * machine -- Pointer to the machine where this CPU is running * cpunum -- Index to the CPU * line -- The IRQ to set, those are generally defined in the appropriate CPU header files * state -- The logical state to set. Possible values are ASSERT_LINE, HOLD_LINE, CLEAR_LINE and PULSE_… , , ,
cpunum_set_input_line_and_vector() Set the logical state of an input line on a CPU and its associated vector. This function is a combined version of cpunum_set_input_line() and cpunum_set_input_line_vector(). Syntax Declaration Declared in src/emu/cpuint.h as void cpunum_set_input_line_and_vector(running_machine *machine, int cpunum, int line, int state, int vector); , , ,
cpunum_set_input_line_vector() Set the vector to be returned during a CPU's interrupt acknowledge cycle. Syntax Declaration Declared in src/emu/cpuint.h as void cpunum_set_input_line_vector(int cpunum, int irqline, int vector); Parameters * cpunum -- Index to the CPU * irqline -- The IRQ to set, those are generally defined in the appropriate CPU header files * vector -- The vector you want to set , , ,
cpunum_set_irq_callback() Install a driver callback for IRQ acknowledge. This callback is used to get a vector for an IRQ line. Syntax Declaration Declared in src/emu/cpuint.h as void cpunum_set_irq_callback(int cpunum, int (*callback)(int irqline)); Parameters * cpunum -- Index to the CPU * *callback -- Pointer to a function that will be called when this IRQ is fired. , , ,
device_getinfo The device_getinfo functions are used by MESS to get additional info about the devices used in a system. They are generally located in the systems/<drivername>.c file. Syntax All data that you want to return must be copied into the info union. A switch is used to selected the info MESS wants. Possible states are: , ,
logerror() The logerror() function is used to output text to the standard error.log file (if the log option is enabled) and is also visible in a debugger error output window. Syntax Declaration Declared in src/emu/mame.h as void CLIB_DECL logerror(const char *format, ...) ATTR_PRINTF(1,2); , , ,
mame_rand() The mame_rand() function returns a standardized random number. Syntax Declaration Declared in src/emu/mame.h as UINT32 mame_rand(running_machine *machine); Parameters * *machine -- Pointer to the currently running machine. Returns A random number. , ,
popmessage() The popmessage() function is used to display on-screen info at the bottom of the emulated display. Syntax Declaration Declared in src/emu/mame.h as void CLIB_DECL popmessage(const char *format, ...) ATTR_PRINTF(1,2); Parameters * *format -- Pointer to a const char with the text to be printed. Supports printf-style parameters. Can be NULL, in this case the displayed message is cleared immediately. * ... -- A list of variables that are referenced in the text. , , ,
read_file() The read_file() function is called when the user requests a file to be read from the source image. Syntax Declaration Declared in src/mess/tools/imgtool/library.h as Parameters * partition -- Pointer to an imgtool_partition where the file is. * filename -- Pointer to a string with the filename of the file the user wants to read. * fork -- Pointer to a string with a resource fork. Only used for Macintosh filesystems. * destf -- Pointer to an imgtool_stream to write the file data to. , , ,
stream_write() The stream_write() function is used to write to data to imgtool_streams. Syntax Declaration Declared in src/mess/tools/imgtool/stream.h as UINT32 stream_write(imgtool_stream *stream, const void *buf, UINT32 sz); Parameters * stream -- Pointer to the imgtool_stream where the data should be written. * buf -- Pointer to a buffer with the data. * sz -- Amount of bytes to write. , , ,
tag/reference.txt · Last modified: 2007-11-19 11:16 by duke