mirror of
https://github.com/holub/mame
synced 2025-05-31 10:01:51 +03:00

Sent: Tuesday, December 16, 2008 12:20 PM To: submit@mamedev.org Cc: atariace@hotmail.com Subject: [patch] Migrate CPU defines to cpu header files Hi mamedev, This patch migrates all the CPU definitions into the cpu header files. The #defines and CPU_GET_INFO declarations were added by hand to the cpu cores in the first patch, plus a few partly related fixes to the non-DRC cores. The second patch was produced by the attached script which inserts all needed #includes, except for two that were added by hand in the first patch. The first patch also removed an extra define of N2A03_DEFAULTCLOCK that would have caused problems with the second patch. ~aa
63 lines
2.1 KiB
C
63 lines
2.1 KiB
C
/*****************************************************************************
|
|
*
|
|
* sc61860.h
|
|
* portable sharp 61860 emulator interface
|
|
* (sharp pocket computers)
|
|
*
|
|
* Copyright Peter Trauner, all rights reserved.
|
|
*
|
|
* - This source code is released as freeware for non-commercial purposes.
|
|
* - You are free to use and redistribute this code in modified or
|
|
* unmodified form, provided you list me in the credits.
|
|
* - If you modify this source code, you must add a notice to each modified
|
|
* source file that it has been changed. If you're a nice person, you
|
|
* will clearly mark each change too. :)
|
|
* - If you wish to use this for commercial purposes, please contact me at
|
|
* peter.trauner@jk.uni-linz.ac.at
|
|
* - The author of this copywritten work reserves the right to change the
|
|
* terms of its usage and license at any time, including retroactively
|
|
* - This entire notice must remain in the source code.
|
|
*
|
|
*****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#ifndef __SC61860_H__
|
|
#define __SC61860_H__
|
|
|
|
/*
|
|
official names seam to be
|
|
ESR-H, ESR-J
|
|
(ESR-L SC62015 ist complete different)
|
|
*/
|
|
|
|
/* unsolved problems
|
|
the processor has 8 kbyte internal rom
|
|
only readable with special instructions and program execution
|
|
64 kb external ram (first 8kbyte not seen for program execution?) */
|
|
|
|
#include "cpuintrf.h"
|
|
|
|
typedef struct _sc61860_cpu_core sc61860_cpu_core;
|
|
struct _sc61860_cpu_core
|
|
{
|
|
int (*reset)(const device_config *device);
|
|
int (*brk)(const device_config *device);
|
|
int (*x)(const device_config *device);
|
|
int (*ina)(const device_config *device);
|
|
void (*outa)(const device_config *device, int);
|
|
int (*inb)(const device_config *device);
|
|
void (*outb)(const device_config *device, int);
|
|
void (*outc)(const device_config *device, int);
|
|
};
|
|
|
|
CPU_DISASSEMBLE( sc61860 );
|
|
|
|
/* this is though for power on/off of the sharps */
|
|
UINT8 *sc61860_internal_ram(const device_config *device);
|
|
|
|
CPU_GET_INFO( sc61860 );
|
|
#define CPU_SC61860 CPU_GET_INFO_NAME( sc61860 )
|
|
|
|
#endif /* __SC61860_H__ */
|