mirror of https://github.com/icedland/iced.git
Update README.md
This commit is contained in:
parent
72d6b16525
commit
eee0d18a06
|
@ -686,8 +686,6 @@ def how_to_get_instruction_info() -> None:
|
|||
print(f" Code: {code_to_string(instr.code)}")
|
||||
print(f" CpuidFeature: {cpuid_features_to_string(instr.cpuid_features())}")
|
||||
print(f" FlowControl: {flow_control_to_string(instr.flow_control)}")
|
||||
if offsets.has_displacement:
|
||||
print(f" Displacement offset = {offsets.displacement_offset}, size = {offsets.displacement_size}")
|
||||
if fpu_info.writes_top:
|
||||
if fpu_info.increment == 0:
|
||||
print(f" FPU TOP: the instruction overwrites TOP")
|
||||
|
@ -695,6 +693,8 @@ def how_to_get_instruction_info() -> None:
|
|||
print(f" FPU TOP inc: {fpu_info.increment}")
|
||||
cond_write = "True" if fpu_info.conditional else "False"
|
||||
print(f" FPU TOP cond write: {cond_write}")
|
||||
if offsets.has_displacement:
|
||||
print(f" Displacement offset = {offsets.displacement_offset}, size = {offsets.displacement_size}")
|
||||
if offsets.has_immediate:
|
||||
print(f" Immediate offset = {offsets.immediate_offset}, size = {offsets.immediate_size}")
|
||||
if offsets.has_immediate2:
|
||||
|
|
|
@ -899,13 +899,6 @@ pub(crate) fn how_to_get_instruction_info() {
|
|||
.join(" and ")
|
||||
);
|
||||
println!(" FlowControl: {:?}", instr.flow_control());
|
||||
if offsets.has_displacement() {
|
||||
println!(
|
||||
" Displacement offset = {}, size = {}",
|
||||
offsets.displacement_offset(),
|
||||
offsets.displacement_size()
|
||||
);
|
||||
}
|
||||
if fpu_info.writes_top() {
|
||||
if fpu_info.increment() == 0 {
|
||||
println!(" FPU TOP: the instruction overwrites TOP");
|
||||
|
@ -917,6 +910,13 @@ pub(crate) fn how_to_get_instruction_info() {
|
|||
if fpu_info.conditional() { "true" } else { "false" }
|
||||
);
|
||||
}
|
||||
if offsets.has_displacement() {
|
||||
println!(
|
||||
" Displacement offset = {}, size = {}",
|
||||
offsets.displacement_offset(),
|
||||
offsets.displacement_size()
|
||||
);
|
||||
}
|
||||
if offsets.has_immediate() {
|
||||
println!(
|
||||
" Immediate offset = {}, size = {}",
|
||||
|
|
Loading…
Reference in New Issue