Function report |
Source Code:arch\x86\lib\insn.c |
Create Date:2022-07-28 07:25:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sn_get_displacement() - Get the displacement of instruction*@insn: &struct insn containing instruction* If necessary, first collects the instruction up to and including the* SIB byte.* Displacement value is sign-expanded.
Proto:void insn_get_displacement(struct insn *insn)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct insn * | insn |
| 382 | If !0 if we've run insn_get_xxx() for this field Then Return |
| 386 | If nbytes Then |
| 404 | mod = X86_MODRM_MOD(value) |
| 405 | rm = X86_MODRM_RM(value) |
| 406 | base = X86_SIB_BASE(value) |
| 409 | If mod == 1 Then |
| 412 | Else if addr_bytes == 2 Then |
| 418 | Else |
| 426 | out : |
| 429 | err_out : |
| 430 | Return |
| Name | Describe |
|---|---|
| insn_get_immediate | sn_get_immediate() - Get the immediates of instruction*@insn: &struct insn containing instruction* If necessary, first collects the instruction up to and including the* displacement bytes.* Basically, most of immediates are sign-expanded |
| get_addr_ref_16 | get_addr_ref_16() - Obtain the 16-bit address referred by instruction*@insn: Instruction containing ModRM byte and displacement*@regs: Register values as seen when entering kernel mode* This function is to be used with 16-bit address encodings |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |