summaryrefslogtreecommitdiffstatshomepage
path: root/trunk/src/emu/cpu/sc61860/sc61860.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/emu/cpu/sc61860/sc61860.h')
-rw-r--r--trunk/src/emu/cpu/sc61860/sc61860.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/trunk/src/emu/cpu/sc61860/sc61860.h b/trunk/src/emu/cpu/sc61860/sc61860.h
new file mode 100644
index 00000000000..16009bb0551
--- /dev/null
+++ b/trunk/src/emu/cpu/sc61860/sc61860.h
@@ -0,0 +1,60 @@
+/*****************************************************************************
+ *
+ * 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?) */
+
+
+typedef struct _sc61860_cpu_core sc61860_cpu_core;
+struct _sc61860_cpu_core
+{
+ int (*reset)(device_t *device);
+ int (*brk)(device_t *device);
+ int (*x)(device_t *device);
+ int (*ina)(device_t *device);
+ void (*outa)(device_t *device, int);
+ int (*inb)(device_t *device);
+ void (*outb)(device_t *device, int);
+ void (*outc)(device_t *device, int);
+};
+
+CPU_DISASSEMBLE( sc61860 );
+
+/* this is though for power on/off of the sharps */
+UINT8 *sc61860_internal_ram(device_t *device);
+
+DECLARE_LEGACY_CPU_DEVICE(SC61860, sc61860);
+
+#endif /* __SC61860_H__ */