2717
|
1 #ifndef UPD78K2_DIS_H_
|
|
2 #define UPD78K2_DIS_H_
|
|
3 #include <stdint.h>
|
|
4 #include "disasm.h"
|
|
5
|
|
6 enum {
|
|
7 UPD_REF_NONE,
|
|
8 UPD_REF_OP,
|
|
9 UPD_REF_2OP,
|
|
10 UPD_REF_BRANCH,
|
|
11 UPD_REF_COND_BRANCH,
|
|
12 UPD_REF_OP_BRANCH,
|
|
13 UPD_REF_CALL,
|
|
14 UPD_REF_CALL_TABLE
|
|
15 };
|
|
16
|
|
17 typedef struct {
|
|
18 uint16_t address;
|
|
19 uint16_t address2;
|
|
20 uint8_t ref_type;
|
|
21 } upd_address_ref;
|
|
22
|
|
23 typedef uint8_t (*upd_fetch_fun)(uint16_t address, void *data);
|
|
24
|
|
25 uint16_t upd78k2_disasm(char *dst, upd_address_ref *ref, uint16_t address, upd_fetch_fun fetch, void *data, disasm_context *context);
|
|
26
|
|
27
|
|
28 #endif //UPD78K2_DIS_H_
|