Function report |
Source Code:arch\x86\lib\insn.c |
Create Date:2022-07-28 07:25:11 |
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_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
Proto:void insn_get_immediate(struct insn *insn)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct insn * | insn |
551 | If !0 if we've run insn_get_xxx() for this field Then Return |
556 | If inat_has_moffset(attr) Then |
557 | If Not Decode moffset16/32/64. Return 0 if failed Then Go to err_out |
559 | Go to done |
562 | If Not inat_has_immediate(attr) Then Go to done |
567 | Case inat_immediate_size(attr) == Immediate size |
571 | Case inat_immediate_size(attr) == INAT_IMM_WORD |
575 | Case inat_immediate_size(attr) == INAT_IMM_DWORD |
579 | Case inat_immediate_size(attr) == INAT_IMM_QWORD |
585 | Case inat_immediate_size(attr) == INAT_IMM_PTR |
586 | If Not Decode ptr16:16/32(Ap) Then Go to err_out |
588 | Break |
589 | Case inat_immediate_size(attr) == INAT_IMM_VWORD32 |
590 | If Not Decode imm v32(Iz). Return 0 if failed Then Go to err_out |
592 | Break |
593 | Case inat_immediate_size(attr) == INAT_IMM_VWORD |
594 | If Not Decode imm v64(Iv/Ov), Return 0 if failed Then Go to err_out |
596 | Break |
597 | Default |
599 | Go to err_out |
601 | If inat_has_second_immediate(attr) Then |
605 | done : |
608 | err_out : |
609 | Return |
Name | Describe |
---|---|
insn_get_length | sn_get_length() - Get the length of instruction*@insn: &struct insn containing instruction* If necessary, first collects the instruction up to and including the* immediates bytes. |
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 |