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
|
#pragma once
#ifndef __Z8000_H__
#define __Z8000_H__
#include "cpuintrf.h"
enum
{
Z8000_PC=1, Z8000_NSP, Z8000_FCW, Z8000_PSAP, Z8000_REFRESH,
Z8000_IRQ_REQ, Z8000_IRQ_SRV, Z8000_IRQ_VEC,
Z8000_R0, Z8000_R1, Z8000_R2, Z8000_R3,
Z8000_R4, Z8000_R5, Z8000_R6, Z8000_R7,
Z8000_R8, Z8000_R9, Z8000_R10, Z8000_R11,
Z8000_R12, Z8000_R13, Z8000_R14, Z8000_R15
};
/* Interrupt Types that can be generated by outside sources */
#define Z8000_TRAP 0x4000 /* internal trap */
#define Z8000_NMI 0x2000 /* non maskable interrupt */
#define Z8000_SEGTRAP 0x1000 /* segment trap (Z8001) */
#define Z8000_NVI 0x0800 /* non vectored interrupt */
#define Z8000_VI 0x0400 /* vectored interrupt (LSB is vector) */
#define Z8000_SYSCALL 0x0200 /* system call (lsb is vector) */
#define Z8000_HALT 0x0100 /* halted flag */
/* PUBLIC FUNCTIONS */
extern void z8000_get_info(UINT32 state, cpuinfo *info);
offs_t z8000_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
#endif /* __Z8000_H__ */
|