Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
xemu
z80ex
z80ex_dasm.h
Go to the documentation of this file.
1
/*
2
* Z80Ex, ZILoG Z80 CPU emulator.
3
*
4
* by Pigmaker57 aka boo_boo [pigmaker57@kahoh57.info]
5
*
6
* contains some code from the FUSE project (http://fuse-emulator.sourceforge.net)
7
* Released under GNU GPL v2
8
*
9
*/
10
11
#ifndef _Z80EX_DASM_H_INCLUDED
12
#define _Z80EX_DASM_H_INCLUDED
13
14
#include "
xemu/z80ex/z80ex.h
"
15
16
/*callback that returns byte for a given adress*/
17
typedef
Z80EX_BYTE
(*
z80ex_dasm_readbyte_cb
)(
Z80EX_WORD
addr
);
18
19
/*flags*/
20
enum
Z80EX_DASM_FLAGS
{
21
WORDS_DEC
= 1,
22
BYTES_DEC
= 2
23
};
24
25
#ifndef __Z80EX_SELF_INCLUDE
26
27
/*z80ex_dasm: disassemble single instruction at the given adress
28
output - text buffer to write disassembly to
29
output_size - length of the text buffer
30
flags - output format settings, or 0 for defaults
31
t_states - will be set to T-states of the instruction
32
t_states2 - for branching commands: T-states when PC is changed, for other commands: 0
33
readbyte_cb - callback function for reading byte at given adress
34
addr - adress of the first byte of the instruction to disassemble
35
user_data - will be passed to readbyte_cb callback
36
37
returns: length of processed instruction in bytes
38
*/
39
extern
int
z80ex_dasm
(
char
*output,
int
output_size,
unsigned
flags
,
int
*t_states,
int
*t_states2,
40
z80ex_dasm_readbyte_cb
readbyte_cb
,
Z80EX_WORD
addr
);
41
42
#endif
43
44
#endif
flags
Uint8 flags
Definition:
z8k1.c:126
WORDS_DEC
@ WORDS_DEC
Definition:
z80ex_dasm.h:21
z80ex.h
addr
int addr
Definition:
dma65.c:81
Z80EX_WORD
unsigned short Z80EX_WORD
Definition:
z80ex.h:51
z80ex_dasm_readbyte_cb
Z80EX_BYTE(* z80ex_dasm_readbyte_cb)(Z80EX_WORD addr)
Definition:
z80ex_dasm.h:17
Z80EX_BYTE
unsigned char Z80EX_BYTE
Definition:
z80ex.h:49
BYTES_DEC
@ BYTES_DEC
Definition:
z80ex_dasm.h:22
readbyte_cb
Z80EX_BYTE readbyte_cb(Z80EX_WORD addr, void *user_data)
Definition:
dasm.c:13
Z80EX_DASM_FLAGS
Z80EX_DASM_FLAGS
Definition:
z80ex_dasm.h:20
z80ex_dasm
int z80ex_dasm(char *output, int output_size, unsigned flags, int *t_states, int *t_states2, z80ex_dasm_readbyte_cb readbyte_cb, Z80EX_WORD addr)
Definition:
z80ex_dasm.c:42
Generated by
1.8.17