Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
z80ex.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  Z80EX_REGPAIR_T
 
struct  _z80_cpu_context
 

Macros

#define IS_TSTATE_CB   z80ex.tstate_cb
 
#define Z80EX_TYPES_DEFINED
 
#define Z80_A   z80ex.af.b.h
 
#define Z80_F   z80ex.af.b.l
 
#define Z80_AF   z80ex.af.w
 
#define Z80_B   z80ex.bc.b.h
 
#define Z80_C   z80ex.bc.b.l
 
#define Z80_BC   z80ex.bc.w
 
#define Z80_D   z80ex.de.b.h
 
#define Z80_E   z80ex.de.b.l
 
#define Z80_DE   z80ex.de.w
 
#define Z80_H   z80ex.hl.b.h
 
#define Z80_L   z80ex.hl.b.l
 
#define Z80_HL   z80ex.hl.w
 
#define Z80_A_   z80ex.af_.b.h
 
#define Z80_F_   z80ex.af_.b.l
 
#define Z80_AF_   z80ex.af_.w
 
#define Z80_B_   z80ex.bc_.b.h
 
#define Z80_C_   z80ex.bc_.b.l
 
#define Z80_BC_   z80ex.bc_.w
 
#define Z80_D_   z80ex.de_.b.h
 
#define Z80_E_   z80ex.de_.b.l
 
#define Z80_DE_   z80ex.de_.w
 
#define Z80_H_   z80ex.hl_.b.h
 
#define Z80_L_   z80ex.hl_.b.l
 
#define Z80_HL_   z80ex.hl_.w
 
#define Z80_IXH   z80ex.ix.b.h
 
#define Z80_IXL   z80ex.ix.b.l
 
#define Z80_IX   z80ex.ix.w
 
#define Z80_IYH   z80ex.iy.b.h
 
#define Z80_IYL   z80ex.iy.b.l
 
#define Z80_IY   z80ex.iy.w
 
#define Z80_SPH   z80ex.sp.b.h
 
#define Z80_SPL   z80ex.sp.b.l
 
#define Z80_SP   z80ex.sp.w
 
#define Z80_PCH   z80ex.pc.b.h
 
#define Z80_PCL   z80ex.pc.b.l
 
#define Z80_PC   z80ex.pc.w
 
#define Z80_I   z80ex.i
 
#define Z80_R   z80ex.r
 
#define Z80_R7   z80ex.r7
 
#define Z80_IFF1   z80ex.iff1
 
#define Z80_IFF2   z80ex.iff2
 
#define Z80_IM   z80ex.im
 
#define Z80_FLAG_C   0x01
 
#define Z80_FLAG_N   0x02
 
#define Z80_FLAG_P   0x04
 
#define Z80_FLAG_V   Z80_FLAG_P
 
#define Z80_FLAG_3   0x08
 
#define Z80_FLAG_H   0x10
 
#define Z80_FLAG_5   0x20
 
#define Z80_FLAG_Z   0x40
 
#define Z80_FLAG_S   0x80
 
#define z80ex_last_op_type()   z80ex.prefix
 
#define z80ex_doing_halt()   z80ex.halted
 
#define z80ex_op_tstate()   z80ex.tstate
 

Typedefs

typedef unsigned char Z80EX_BYTE
 
typedef signed char Z80EX_SIGNED_BYTE
 
typedef unsigned short Z80EX_WORD
 
typedef unsigned int Z80EX_DWORD
 
typedef struct _z80_cpu_context Z80EX_CONTEXT
 

Enumerations

enum  IM_MODE { IM0 = 0, IM1 = 1, IM2 = 2 }
 

Functions

void z80ex_init (void)
 
int z80ex_step (void)
 
int z80ex_int ()
 
int z80ex_nmi ()
 
void z80ex_reset (void)
 
void z80ex_w_states (unsigned w_states)
 
void z80ex_next_t_state ()
 
int z80ex_int_possible (void)
 
int z80ex_nmi_possible (void)
 

Variables

Z80EX_CONTEXT z80ex
 

Macro Definition Documentation

◆ IS_TSTATE_CB

#define IS_TSTATE_CB   z80ex.tstate_cb

Definition at line 23 of file z80ex.h.

◆ Z80_A

#define Z80_A   z80ex.af.b.h

Definition at line 75 of file z80ex.h.

◆ Z80_A_

#define Z80_A_   z80ex.af_.b.h

Definition at line 91 of file z80ex.h.

◆ Z80_AF

#define Z80_AF   z80ex.af.w

Definition at line 77 of file z80ex.h.

◆ Z80_AF_

#define Z80_AF_   z80ex.af_.w

Definition at line 93 of file z80ex.h.

◆ Z80_B

#define Z80_B   z80ex.bc.b.h

Definition at line 79 of file z80ex.h.

◆ Z80_B_

#define Z80_B_   z80ex.bc_.b.h

Definition at line 95 of file z80ex.h.

◆ Z80_BC

#define Z80_BC   z80ex.bc.w

Definition at line 81 of file z80ex.h.

◆ Z80_BC_

#define Z80_BC_   z80ex.bc_.w

Definition at line 97 of file z80ex.h.

◆ Z80_C

#define Z80_C   z80ex.bc.b.l

Definition at line 80 of file z80ex.h.

◆ Z80_C_

#define Z80_C_   z80ex.bc_.b.l

Definition at line 96 of file z80ex.h.

◆ Z80_D

#define Z80_D   z80ex.de.b.h

Definition at line 83 of file z80ex.h.

◆ Z80_D_

#define Z80_D_   z80ex.de_.b.h

Definition at line 99 of file z80ex.h.

◆ Z80_DE

#define Z80_DE   z80ex.de.w

Definition at line 85 of file z80ex.h.

◆ Z80_DE_

#define Z80_DE_   z80ex.de_.w

Definition at line 101 of file z80ex.h.

◆ Z80_E

#define Z80_E   z80ex.de.b.l

Definition at line 84 of file z80ex.h.

◆ Z80_E_

#define Z80_E_   z80ex.de_.b.l

Definition at line 100 of file z80ex.h.

◆ Z80_F

#define Z80_F   z80ex.af.b.l

Definition at line 76 of file z80ex.h.

◆ Z80_F_

#define Z80_F_   z80ex.af_.b.l

Definition at line 92 of file z80ex.h.

◆ Z80_FLAG_3

#define Z80_FLAG_3   0x08

Definition at line 137 of file z80ex.h.

◆ Z80_FLAG_5

#define Z80_FLAG_5   0x20

Definition at line 139 of file z80ex.h.

◆ Z80_FLAG_C

#define Z80_FLAG_C   0x01

Definition at line 133 of file z80ex.h.

◆ Z80_FLAG_H

#define Z80_FLAG_H   0x10

Definition at line 138 of file z80ex.h.

◆ Z80_FLAG_N

#define Z80_FLAG_N   0x02

Definition at line 134 of file z80ex.h.

◆ Z80_FLAG_P

#define Z80_FLAG_P   0x04

Definition at line 135 of file z80ex.h.

◆ Z80_FLAG_S

#define Z80_FLAG_S   0x80

Definition at line 141 of file z80ex.h.

◆ Z80_FLAG_V

#define Z80_FLAG_V   Z80_FLAG_P

Definition at line 136 of file z80ex.h.

◆ Z80_FLAG_Z

#define Z80_FLAG_Z   0x40

Definition at line 140 of file z80ex.h.

◆ Z80_H

#define Z80_H   z80ex.hl.b.h

Definition at line 87 of file z80ex.h.

◆ Z80_H_

#define Z80_H_   z80ex.hl_.b.h

Definition at line 103 of file z80ex.h.

◆ Z80_HL

#define Z80_HL   z80ex.hl.w

Definition at line 89 of file z80ex.h.

◆ Z80_HL_

#define Z80_HL_   z80ex.hl_.w

Definition at line 105 of file z80ex.h.

◆ Z80_I

#define Z80_I   z80ex.i

Definition at line 123 of file z80ex.h.

◆ Z80_IFF1

#define Z80_IFF1   z80ex.iff1

Definition at line 127 of file z80ex.h.

◆ Z80_IFF2

#define Z80_IFF2   z80ex.iff2

Definition at line 128 of file z80ex.h.

◆ Z80_IM

#define Z80_IM   z80ex.im

Definition at line 129 of file z80ex.h.

◆ Z80_IX

#define Z80_IX   z80ex.ix.w

Definition at line 109 of file z80ex.h.

◆ Z80_IXH

#define Z80_IXH   z80ex.ix.b.h

Definition at line 107 of file z80ex.h.

◆ Z80_IXL

#define Z80_IXL   z80ex.ix.b.l

Definition at line 108 of file z80ex.h.

◆ Z80_IY

#define Z80_IY   z80ex.iy.w

Definition at line 113 of file z80ex.h.

◆ Z80_IYH

#define Z80_IYH   z80ex.iy.b.h

Definition at line 111 of file z80ex.h.

◆ Z80_IYL

#define Z80_IYL   z80ex.iy.b.l

Definition at line 112 of file z80ex.h.

◆ Z80_L

#define Z80_L   z80ex.hl.b.l

Definition at line 88 of file z80ex.h.

◆ Z80_L_

#define Z80_L_   z80ex.hl_.b.l

Definition at line 104 of file z80ex.h.

◆ Z80_PC

#define Z80_PC   z80ex.pc.w

Definition at line 121 of file z80ex.h.

◆ Z80_PCH

#define Z80_PCH   z80ex.pc.b.h

Definition at line 119 of file z80ex.h.

◆ Z80_PCL

#define Z80_PCL   z80ex.pc.b.l

Definition at line 120 of file z80ex.h.

◆ Z80_R

#define Z80_R   z80ex.r

Definition at line 124 of file z80ex.h.

◆ Z80_R7

#define Z80_R7   z80ex.r7

Definition at line 125 of file z80ex.h.

◆ Z80_SP

#define Z80_SP   z80ex.sp.w

Definition at line 117 of file z80ex.h.

◆ Z80_SPH

#define Z80_SPH   z80ex.sp.b.h

Definition at line 115 of file z80ex.h.

◆ Z80_SPL

#define Z80_SPL   z80ex.sp.b.l

Definition at line 116 of file z80ex.h.

◆ z80ex_doing_halt

#define z80ex_doing_halt ( )    z80ex.halted

Definition at line 232 of file z80ex.h.

◆ z80ex_last_op_type

#define z80ex_last_op_type ( )    z80ex.prefix

Definition at line 215 of file z80ex.h.

◆ z80ex_op_tstate

#define z80ex_op_tstate ( )    z80ex.tstate

Definition at line 236 of file z80ex.h.

◆ Z80EX_TYPES_DEFINED

#define Z80EX_TYPES_DEFINED

Definition at line 30 of file z80ex.h.

Typedef Documentation

◆ Z80EX_BYTE

typedef unsigned char Z80EX_BYTE

Definition at line 49 of file z80ex.h.

◆ Z80EX_CONTEXT

Definition at line 183 of file z80ex.h.

◆ Z80EX_DWORD

typedef unsigned int Z80EX_DWORD

Definition at line 52 of file z80ex.h.

◆ Z80EX_SIGNED_BYTE

typedef signed char Z80EX_SIGNED_BYTE

Definition at line 50 of file z80ex.h.

◆ Z80EX_WORD

typedef unsigned short Z80EX_WORD

Definition at line 51 of file z80ex.h.

Enumeration Type Documentation

◆ IM_MODE

enum IM_MODE
Enumerator
IM0 
IM1 
IM2 

Definition at line 67 of file z80ex.h.

Function Documentation

◆ z80ex_init()

void z80ex_init ( void  )

Definition at line 175 of file z80ex.c.

Here is the call graph for this function:

◆ z80ex_int()

int z80ex_int ( )

Definition at line 225 of file z80ex.c.

Here is the call graph for this function:

◆ z80ex_int_possible()

int z80ex_int_possible ( void  )

Definition at line 327 of file z80ex.c.

◆ z80ex_next_t_state()

void z80ex_next_t_state ( )

Definition at line 312 of file z80ex.c.

Here is the call graph for this function:

◆ z80ex_nmi()

int z80ex_nmi ( )

Definition at line 192 of file z80ex.c.

Here is the call graph for this function:

◆ z80ex_nmi_possible()

int z80ex_nmi_possible ( void  )

Definition at line 333 of file z80ex.c.

◆ z80ex_reset()

void z80ex_reset ( void  )

Definition at line 156 of file z80ex.c.

Here is the caller graph for this function:

◆ z80ex_step()

int z80ex_step ( void  )

Definition at line 47 of file z80ex.c.

Here is the caller graph for this function:

◆ z80ex_w_states()

void z80ex_w_states ( unsigned  w_states)

Definition at line 307 of file z80ex.c.

Variable Documentation

◆ z80ex

Definition at line 37 of file primo.c.