blob: 6bf164a15335869ea7ddfc4a81a9dbbe6cd86a93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/*****************************************************************************
*
* saturn.h
* portable saturn emulator interface
* (hp calculators)
*
* 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.
*
*****************************************************************************/
/*
Calculator Release Date Chip Version Analog/Digital IC
HP71B (early) 02/01/84 1LF2 -
HP71B (later) ??/??/?? 1LK7 -
HP18C 06/01/86 1LK7 -
HP28C 01/05/87 1LK7 -
HP17B 01/04/88 1LT8 Lewis
HP19B 01/04/88 1LT8 Lewis
HP27S 01/04/88 1LT8 Lewis
HP28S 01/04/88 1LT8 Lewis
HP48SX 03/16/91 1LT8 Clarke
HP48S 04/02/91 1LT8 Clarke
HP48GX 06/01/93 1LT8 Yorke
HP48G 06/01/93 1LT8 Yorke
HP38G 09/??/95 1LT8 Yorke
*/
/* 4 bit processor
20 address lines */
#ifndef _SATURN_H
#define _SATURN_H
#include "cpuintrf.h"
#define SATURN_INT_NONE 0
#define SATURN_INT_IRQ 1
#define SATURN_INT_NMI 2
typedef struct
{
void (*out)(int);
int (*in)(void);
void (*reset)(void);
void (*config)(int v);
void (*unconfig)(int v);
int (*id)(void);
void (*crc)(int addr, int data);
} SATURN_CONFIG;
#ifdef ENABLE_DEBUGGER
unsigned saturn_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
#endif /* ENABLE_DEBUGGER */
void saturn_get_info(UINT32 state, cpuinfo *info);
#endif
|