<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://mess.redump.net/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://mess.redump.net/feed.php">
        <title>MESS reference</title>
        <description></description>
        <link>http://mess.redump.net/</link>
        <image rdf:resource="http://mess.redump.net/lib/images/favicon.ico" />
       <dc:date>2010-09-10T09:44:59+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://mess.redump.net/reference:cpunum_set_input_line?rev=1201272095&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:cpunum_set_input_line_and_vector?rev=1201272173&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:cpunum_set_input_line_vector?rev=1195492531&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:cpunum_set_irq_callback?rev=1195492664&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:device_getinfo?rev=1184810523&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:imgtool?rev=1196109503&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:logerror?rev=1199467849&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:mame_and_mess_source_layout?rev=1188429062&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:mame_rand?rev=1184810524&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:popmessage?rev=1199467367&amp;do=diff"/>
                <rdf:li rdf:resource="http://mess.redump.net/reference:system_config?rev=1184810525&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://mess.redump.net/lib/images/favicon.ico">
        <title>MESS</title>
        <link>http://mess.redump.net/</link>
        <url>http://mess.redump.net/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://mess.redump.net/reference:cpunum_set_input_line?rev=1201272095&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-01-25T15:41:35+02:00</dc:date>
        <title>cpunum_set_input_line()</title>
        <link>http://mess.redump.net/reference:cpunum_set_input_line?rev=1201272095&amp;do=diff</link>
        <description>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_…</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:cpunum_set_input_line_and_vector?rev=1201272173&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-01-25T15:42:53+02:00</dc:date>
        <title>cpunum_set_input_line_and_vector()</title>
        <link>http://mess.redump.net/reference:cpunum_set_input_line_and_vector?rev=1201272173&amp;do=diff</link>
        <description>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);</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:cpunum_set_input_line_vector?rev=1195492531&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-19T18:15:31+02:00</dc:date>
        <title>cpunum_set_input_line_vector()</title>
        <link>http://mess.redump.net/reference:cpunum_set_input_line_vector?rev=1195492531&amp;do=diff</link>
        <description>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</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:cpunum_set_irq_callback?rev=1195492664&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-19T18:17:44+02:00</dc:date>
        <title>cpunum_set_irq_callback()</title>
        <link>http://mess.redump.net/reference:cpunum_set_irq_callback?rev=1195492664&amp;do=diff</link>
        <description>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.</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:device_getinfo?rev=1184810523&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-07-19T04:02:03+02:00</dc:date>
        <title>device_getinfo</title>
        <link>http://mess.redump.net/reference:device_getinfo?rev=1184810523&amp;do=diff</link>
        <description>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/&lt;drivername&gt;.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:</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:imgtool?rev=1196109503&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-26T21:38:23+02:00</dc:date>
        <title>Imgtool</title>
        <link>http://mess.redump.net/reference:imgtool?rev=1196109503&amp;do=diff</link>
        <description>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:</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:logerror?rev=1199467849&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-01-04T18:30:49+02:00</dc:date>
        <title>logerror()</title>
        <link>http://mess.redump.net/reference:logerror?rev=1199467849&amp;do=diff</link>
        <description>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);</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:mame_and_mess_source_layout?rev=1188429062&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-08-30T01:11:02+02:00</dc:date>
        <title>MAME &amp; MESS source layout</title>
        <link>http://mess.redump.net/reference:mame_and_mess_source_layout?rev=1188429062&amp;do=diff</link>
        <description>This document describes the organization of the various source files MAME and MESS use.

Overview

	*  makefile -- Makefile for MAME
	*  makefile.mes -- Makefile for MESS
	*  makefile.sdl -- Makefile for SDLMAME/SDLMESS
	*  docs/ -- Documentation
	*  src/ -- Source code
		*   emu/ -- generic emulation files
			*     cpu/ -- CPU cores
			*     sound/ -- sound cores
			*     debug/ -- debugger code
			*     audio/ -- generic audio files
			*     layout/ -- generic layout files
			*     machine/ --…</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:mame_rand?rev=1184810524&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-07-19T04:02:04+02:00</dc:date>
        <title>mame_rand()</title>
        <link>http://mess.redump.net/reference:mame_rand?rev=1184810524&amp;do=diff</link>
        <description>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.</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:popmessage?rev=1199467367&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-01-04T18:22:47+02:00</dc:date>
        <title>popmessage()</title>
        <link>http://mess.redump.net/reference:popmessage?rev=1199467367&amp;do=diff</link>
        <description>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.</description>
    </item>
    <item rdf:about="http://mess.redump.net/reference:system_config?rev=1184810525&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-07-19T04:02:05+02:00</dc:date>
        <title>SYSTEM_CONFIG</title>
        <link>http://mess.redump.net/reference:system_config?rev=1184810525&amp;do=diff</link>
        <description>The SYSTEM_CONFIG macro is used by MESS drivers to provide info about devices and the ram size.

Syntax

SYSTEM_CONFIG_START(&lt;short config name&gt;)
  CONFIG_DEVICE(&lt;short name&gt;_&lt;device&gt;_getinfo)
  ..
  CONFIG_RAM_DEFAULT(&lt;default ram size&gt;)
  CONFIG_RAM(&lt;ram size&gt;)
  ..
SYSTEM_CONFIG_END</description>
    </item>
</rdf:RDF>
