Rizin
unix-like reverse engineering framework and cli tools
z80_tab.h File Reference

Go to the source code of this file.

Classes

struct  z80_opcode
 

Macros

#define NULL   0
 

Enumerations

enum  {
  Z80_OP_UNK = 1 , Z80_OP8 = 2 , Z80_OP16 = 4 , Z80_OP24 = 8 ,
  Z80_ARG8 = 16 , Z80_ARG16 = 32 , Z80_ENC0 = 64 , Z80_ENC1 = 128
}
 

Functions

static ut8 z80_fddd_branch_index_res (ut8 hex)
 
static ut8 z80_ed_branch_index_res (ut8 hex)
 

Variables

static const char * cb []
 
static const char * ddcb []
 
static const char * fdcb []
 
static const z80_opcode dd []
 
static const z80_opcode ed []
 
static const z80_opcode fd []
 
static const z80_opcode z80_op []
 

Macro Definition Documentation

◆ NULL

#define NULL   0

Definition at line 10 of file z80_tab.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
Z80_OP_UNK 
Z80_OP8 
Z80_OP16 
Z80_OP24 
Z80_ARG8 
Z80_ARG16 
Z80_ENC0 
Z80_ENC1 

Definition at line 12 of file z80_tab.h.

12  {
13  Z80_OP_UNK = 1,
14  Z80_OP8 = 2,
15  Z80_OP16 = 4,
16  Z80_OP24 = 8,
17  Z80_ARG8 = 16,
18  Z80_ARG16 = 32,
19  Z80_ENC0 = 64,
20  Z80_ENC1 = 128
21 };
@ Z80_OP24
Definition: z80_tab.h:16
@ Z80_ARG8
Definition: z80_tab.h:17
@ Z80_OP_UNK
Definition: z80_tab.h:13
@ Z80_ENC0
Definition: z80_tab.h:19
@ Z80_ARG16
Definition: z80_tab.h:18
@ Z80_ENC1
Definition: z80_tab.h:20
@ Z80_OP8
Definition: z80_tab.h:14
@ Z80_OP16
Definition: z80_tab.h:15

Function Documentation

◆ z80_ed_branch_index_res()

static ut8 z80_ed_branch_index_res ( ut8  hex)
static

Definition at line 148 of file z80_tab.h.

148  {
149  if (hex > 0x3f && 0x4c > hex)
150  return hex-0x40;
151  if (hex == 0x4d)
152  return 0xc;
153  if (hex > 0x4d && 0x54 > hex)
154  return hex-0x42;
155  if (hex > 0x55 && 0x5c > hex)
156  return hex-0x44;
157  if (hex > 0x5d && 0x63 > hex)
158  return hex-0x46;
159  if (hex > 0x66 && 0x6b > hex)
160  return hex-0x4a;
161  if (hex > 0x6e && 0x74 > hex)
162  return hex-0x4e;
163  if (hex > 0x77 && 0x7c > hex)
164  return hex-0x52;
165  if (hex > 0x9f && 0xa4 > hex)
166  return hex-0x76;
167  if (hex > 0xa7 && 0xac > hex)
168  return hex-0x7a;
169  if (hex > 0xaf && 0xb4 > hex)
170  return hex-0x7e;
171  if (hex > 0xb7 && 0xbc > hex)
172  return hex-0x82;
173  return 0x3b;
174 }
static const char hex[16]
Definition: print.c:21

References hex.

Referenced by z80_op_size(), z80Disass(), and z80OpLength().

◆ z80_fddd_branch_index_res()

static ut8 z80_fddd_branch_index_res ( ut8  hex)
static

Definition at line 29 of file z80_tab.h.

29  {
30  switch (hex) {
31  case 0x9:
32  return 0x0;
33  case 0x19:
34  return 0x1;
35  case 0x21:
36  case 0x22:
37  case 0x23:
38  case 0x24:
39  case 0x25:
40  case 0x26:
41  return hex-0x1f;
42  case 0x29:
43  case 0x2a:
44  case 0x2b:
45  case 0x2c:
46  case 0x2d:
47  case 0x2e:
48  return hex-0x21;
49  case 0x34:
50  case 0x35:
51  case 0x36:
52  return hex-0x26;
53  case 0x39:
54  return 0x11;
55  case 0x44:
56  case 0x45:
57  case 0x46:
58  return hex-0x32;
59  case 0x4c:
60  case 0x4d:
61  case 0x4e:
62  return hex-0x37;
63  case 0x54: //0x18
64  case 0x55:
65  case 0x56:
66  return hex-0x3c;
67  case 0x5c:
68  case 0x5d:
69  case 0x5e: //0x1d
70  return hex-0x41;
71  case 0x60:
72  case 0x61:
73  case 0x62:
74  case 0x63:
75  case 0x64:
76  case 0x65:
77  case 0x66:
78  case 0x67:
79  case 0x68:
80  case 0x69:
81  case 0x6a:
82  case 0x6b:
83  case 0x6c:
84  case 0x6d:
85  case 0x6e:
86  case 0x6f:
87  case 0x70:
88  case 0x71:
89  case 0x72:
90  case 0x73:
91  case 0x74:
92  case 0x75:
93  return hex-0x42;
94  case 0x77:
95  return 0x34;
96  case 0x7c:
97  case 0x7d:
98  case 0x7e:
99  return hex-0x47;
100  case 0x84:
101  case 0x85:
102  case 0x86:
103  return hex-0x4c;
104  case 0x8c:
105  case 0x8d:
106  case 0x8e:
107  return hex-0x51;
108  case 0x94:
109  case 0x95:
110  case 0x96:
111  return hex-0x56;
112  case 0x9c:
113  case 0x9d:
114  case 0x9e:
115  return hex-0x5b;
116  case 0xa4:
117  case 0xa5:
118  case 0xa6:
119  return hex-0x60;
120  case 0xac:
121  case 0xad:
122  case 0xae:
123  return hex-0x65;
124  case 0xb4:
125  case 0xb5:
126  case 0xb6:
127  return hex-0x6a;
128  case 0xbc:
129  case 0xbd:
130  case 0xbe:
131  return hex-0x6f;
132  case 0xcb:
133  return 0x50;
134  case 0xe1:
135  return 0x51;
136  case 0xe3:
137  return 0x52;
138  case 0xe5:
139  return 0x53;
140  case 0xe9:
141  return 0x54;
142  case 0xf9:
143  return 0x55;
144  }
145  return 0x56;
146 }

References hex.

Referenced by z80_op_size(), z80Disass(), and z80OpLength().

Variable Documentation

◆ cb

const char* cb[]
static

Definition at line 176 of file z80_tab.h.

Referenced by __add_menu(), __create_almighty(), __exec_almighty(), __update_menu(), _server_handle_exec_file_read(), all_in(), all_intersect(), argv_modes_new(), argv_new(), argv_state_new(), cd_sort(), cmd_foreach_cmdname(), cmd_foreach_cmdname_modes(), cmp(), foreach(), load_omf_lnames(), print_ehdr_aux(), qnxr_pidlist(), relocs_foreach(), rz_agraph_foreach(), rz_agraph_foreach_edge(), rz_analysis_addr_hints_foreach(), rz_analysis_arch_hints_foreach(), rz_analysis_bits_hints_foreach(), rz_analysis_block_recurse(), rz_analysis_block_recurse_depth_first(), rz_analysis_block_recurse_followthrough(), rz_analysis_blocks_foreach_in(), rz_analysis_blocks_foreach_intersect(), rz_analysis_class_foreach(), rz_bin_elf_print_ehdr(), rz_cmd_add(), rz_cmd_desc_argv_modes_new(), rz_cmd_desc_argv_new(), rz_cmd_desc_argv_state_new(), rz_cmd_desc_group_modes_new(), rz_cmd_desc_group_new(), rz_cmd_desc_group_state_new(), rz_cmd_desc_oldinput_new(), rz_cmd_foreach_cmdname(), rz_config_set_cb(), rz_config_set_getter(), rz_config_set_i_cb(), rz_config_set_setter(), rz_cons_break_push(), rz_cons_context_break_push(), rz_core_cmd_init(), rz_core_search_cb(), rz_core_search_value_in_range(), rz_debug_native_frames(), rz_event_hook(), rz_id_storage_foreach(), rz_interval_node_all_in(), rz_interval_node_all_intersect(), rz_interval_tree_all_at(), rz_interval_tree_all_in(), rz_interval_tree_all_intersect(), rz_lib_add_handler(), rz_line_readline_cb(), rz_num_new(), rz_oids_foreach(), rz_oids_foreach_prev(), rz_print_set_is_interrupted_cb(), rz_str_range_foreach(), rz_str_widget_list(), rz_sys_run(), rz_vlog(), sdb_diff(), sdb_foreach(), sdb_foreach_cdb(), sdb_hook(), sdb_like(), set_xref(), user_edge_cb(), user_node_cb(), uv__io_init(), uv__pipe_write(), uv__pipe_write_data(), uv__pipe_write_ipc(), uv__poll_set(), uv__send(), uv__tcp_connect(), uv_close(), uv_fs_access(), uv_fs_chmod(), uv_fs_chown(), uv_fs_copyfile(), uv_fs_event_start(), uv_fs_lchown(), uv_fs_link(), uv_fs_lstat(), uv_fs_lutime(), uv_fs_mkdir(), uv_fs_open(), uv_fs_opendir(), uv_fs_poll_start(), uv_fs_readlink(), uv_fs_realpath(), uv_fs_rename(), uv_fs_req_init(), uv_fs_rmdir(), uv_fs_scandir(), uv_fs_stat(), uv_fs_statfs(), uv_fs_symlink(), uv_fs_unlink(), uv_fs_utime(), uv_getaddrinfo(), uv_listen(), uv_pipe_connect(), uv_pipe_listen(), uv_poll_start(), uv_random(), uv_shutdown(), uv_tcp_connect(), uv_tcp_listen(), uv_tcp_try_connect(), uv_tcp_write(), uv_timer_start(), uv_tty_write(), uv_write(), uv_write2(), write_data(), zip_source_layered(), and zip_source_layered_create().

◆ dd

◆ ddcb

const char* ddcb[]
static

Definition at line 435 of file z80_tab.h.

◆ ed

const z80_opcode ed[]
static

Definition at line 934 of file z80_tab.h.

Referenced by z80_op_size().

◆ fd

const z80_opcode fd[]
static

Definition at line 997 of file z80_tab.h.

Referenced by __close(), __dupDescriptor(), __lseek(), __rap_accept(), __rap_close(), __rap_listener(), __rap_lseek(), __rap_read(), __rap_reg_profile(), __rap_system(), __rap_write(), __read(), __resize(), __system(), __write(), _zip_fopen_close_on_exec(), _zip_stdio_op_create_temp_output(), add_map(), allwrite(), apprentice_compile(), apprentice_map(), gzfilestream_common::attach(), gzfilebuf::attach(), gzifstream::attach(), gzofstream::attach(), buf_file_init(), buffer_init(), cdb_init(), cdb_make_start(), close_and_restore(), clusterAcceptHandler(), clusterCron(), clusterLockConfig(), clusterReadHandler(), clusterSaveConfig(), clusterWriteHandler(), cmd_search_bin(), config_path(), core_file_do_load_for_debug(), core_file_do_load_for_io_plugin(), core_file_new(), create_filename_from_descriptor(), create_temp_file(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), disable_fd_cache(), dmp_close(), dmp_lseek(), dmp_read(), dmp_write(), epoll_ctl(), epoll_file_close(), fd_read_at_wrap(), fd_write_at_wrap(), file_buffer(), file_or_fd(), fs__close(), fs__fchmod(), fs__fstat(), fs__ftruncate(), fs__futime(), fs__mkstemp_func(), fs__open(), fs__read(), fs__read_filemap(), fs__sync_impl(), fs__write(), fs__write_filemap(), fw04b(), fwblock(), get_bin_info(), GetHeapGlobalsOffset(), gz_open(), gzdopen(), gzifstream::gzifstream(), gzlog_compress(), gzlog_write(), gzofstream::gzofstream(), gztack(), init_inotify(), interact_commands(), io_map_add(), io_map_new(), io_memory_close(), io_memory_lseek(), io_memory_read(), io_memory_resize(), io_memory_write(), iob_pipe_read(), langFromHashbang(), lh5801_decode(), lh5801_ifmt_fd_matches(), log_compress(), log_lock(), log_recover(), m_open_file(), main(), migrateGetSocket(), mips_op(), mkdtemp(), on_new_connection(), open_maps_list(), openfile(), perform_mapped_file_yank(), pids_cmdline(), pids_sons_of_r(), prioritize_file(), procfs_pid_slurp(), read_to_strbuf(), rz_bin_file_new(), rz_bin_file_new_from_buffer(), rz_bin_file_xtr_load_buffer(), rz_bin_options_init(), rz_buf_new_with_io_fd(), rz_cmd_cmp_file_handler(), rz_cmd_debug(), rz_cons_get_size(), rz_cons_pipe_close(), rz_cons_pipe_open(), rz_core_analysis_esil_init_mem(), rz_core_bin_options_init(), rz_core_bin_set_arch_bits(), rz_core_bin_set_cur(), rz_core_cmd_foreach(), rz_core_cmd_foreach3(), rz_core_dump(), rz_core_editor(), rz_core_file_binlist(), rz_core_file_close_fd(), rz_core_file_find_by_fd(), rz_core_file_get_by_fd(), rz_core_file_info_print(), rz_core_file_open(), rz_core_file_reopen_remote_debug(), rz_core_file_set_by_fd(), rz_core_io_file_open(), rz_core_io_file_reopen(), rz_core_rtr_add(), rz_core_rtr_cmd(), rz_core_rtr_list(), rz_core_rtr_pushout(), rz_core_rtr_rap_run(), rz_core_rtr_remove(), rz_core_serve(), rz_core_setup_debugger(), rz_debug_desc_close(), rz_debug_desc_dup(), rz_debug_desc_new(), rz_debug_desc_read(), rz_debug_desc_seek(), rz_debug_desc_write(), rz_file_dump(), rz_file_hexdump(), rz_file_slurp(), rz_file_slurp_hexpairs(), rz_file_slurp_range(), rz_file_truncate(), rz_io_ar_close(), rz_io_ar_lseek(), rz_io_ar_read(), rz_io_ar_write(), rz_io_def_mmap_close(), rz_io_def_mmap_lseek(), rz_io_def_mmap_read(), rz_io_def_mmap_write(), rz_io_desc_del(), rz_io_desc_exchange(), rz_io_desc_get(), rz_io_desc_get_highest(), rz_io_desc_get_lowest(), rz_io_fd_close(), rz_io_fd_get_base(), rz_io_fd_get_buf(), rz_io_fd_get_highest(), rz_io_fd_get_lowest(), rz_io_fd_get_name(), rz_io_fd_get_next(), rz_io_fd_get_pid(), rz_io_fd_get_prev(), rz_io_fd_get_tid(), rz_io_fd_is_blockdevice(), rz_io_fd_is_chardevice(), rz_io_fd_is_dbg(), rz_io_fd_read(), rz_io_fd_read_at(), rz_io_fd_resize(), rz_io_fd_seek(), rz_io_fd_size(), rz_io_fd_write(), rz_io_fd_write_at(), rz_io_map_add(), rz_io_map_add_batch(), rz_io_map_del_for_fd(), rz_io_map_get_for_fd(), rz_io_map_new(), rz_io_map_priorize_for_fd(), rz_io_map_remap_fd(), rz_io_reopen(), rz_io_use_fd(), rz_io_zip_close(), rz_io_zip_lseek(), rz_io_zip_read(), rz_io_zip_resize(), rz_io_zip_write(), rz_line_hist_load(), rz_line_hist_save(), rz_magic_descriptor(), rz_main_rizin(), rz_main_rz_asm(), rz_main_rz_bin(), rz_main_rz_gg(), rz_open_binary_add_handler(), rz_open_binary_file_handler(), rz_open_binary_select_fd_handler(), rz_open_close_handler(), rz_open_exchange_handler(), rz_open_maps_all_fd_handler(), rz_open_maps_list_handler(), rz_open_maps_map_fd_handler(), rz_open_maps_map_handler(), rz_open_maps_prioritize_fd_handler(), rz_open_prioritize_handler(), rz_open_prioritize_next_handler(), rz_open_prioritize_next_rotate_handler(), rz_open_prioritize_prev_handler(), rz_reopen_handler(), rz_reopen_write_handler(), rz_run_config_env(), rz_run_parseline(), rz_save_panels_layout(), rz_socket_new_from_fd(), rz_socket_rap_client_open(), rz_socket_rap_server_continue(), rz_str_write(), rz_sys_aslr(), rz_sys_truncate(), rz_sys_truncate_fd(), rz_write_pcache_commit_handler(), rz_write_pcache_list_handler(), rzk__close(), rzk__open(), rzk__read(), rzk__system(), rzk__write(), save_kv_cb(), sdb_journal_load(), sdb_lock(), sdb_text_load(), sdb_text_save(), sdb_text_save_fd(), seek_set(), slurp(), TAG_CALLBACK(), text_save(), ts_parser_print_dot_graphs(), tuklib_open_stdxxx(), UTIL_getOpenFileSize(), uv__async_send(), uv__cloexec_fcntl(), uv__cloexec_ioctl(), uv__close(), uv__close_nocancel(), uv__close_nocheckstdio(), uv__duplicate_fd(), uv__fd_exists(), uv__fd_hash_add(), uv__fs_close(), uv__fs_fstat(), uv__fs_preadv(), uv__fs_statx(), uv__get_osfhandle(), uv__getsockpeername(), uv__handle_type(), uv__io_check_fd(), uv__io_init(), uv__io_poll(), uv__nonblock_fcntl(), uv__nonblock_ioctl(), uv__open_cloexec(), uv__open_file(), uv__platform_invalidate_fd(), uv__platform_loop_init(), uv__pollfds_del(), uv__preadv(), uv__process_child_init(), uv__process_init_stdio(), uv__pwritev(), uv__random_readpath(), uv__recvmmsg(), uv__recvmsg(), uv__sendmmsg(), uv__set_reuse(), uv__slurp(), uv__socket_sockopt(), uv__stdio_handle(), uv__stream_open(), uv__stream_queue_fd(), uv__tcp_keepalive(), uv__tcp_nodelay(), uv__tty_is_slave(), uv__udp_bind(), uv__udp_init_ex(), uv__write_int(), uv__writev(), uv_disable_stdio_inheritance(), uv_fileno(), uv_fs_close(), uv_fs_event_start(), uv_fs_fchmod(), uv_fs_fdatasync(), uv_fs_fstat(), uv_fs_fsync(), uv_fs_ftruncate(), uv_fs_futime(), uv_fs_read(), uv_fs_write(), uv_get_osfhandle(), uv_pipe_open(), uv_poll_init(), uv_resident_set_memory(), uv_set_pipe_handle(), uv_tcp_close_reset(), uv_tty_init(), uv_tty_set_mode(), vf_close(), vf_lseek(), vf_read(), vf_resize(), vf_write(), windbg_close(), windbg_getbase(), windbg_getpid(), windbg_gettid(), windbg_open(), windbg_read(), windbg_system(), windbg_write(), write_key(), write_path(), write_S3_record(), write_value(), z80_op_size(), zip_fdopen(), and zip_secure_random().

◆ fdcb

const char* fdcb[]
static

Definition at line 639 of file z80_tab.h.

◆ z80_op

const z80_opcode z80_op[]
static

Definition at line 1087 of file z80_tab.h.

Referenced by z80_op_size(), z80Disass(), and z80OpLength().