File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -139,13 +139,14 @@ let disassembleConcreteMethod (runtime: ClrRuntime) (mthinfo: MethodBase) platfo
139
139
// render instructions
140
140
for inst in decoder do
141
141
formatter.Format(& inst, out)
142
- let inst_relative_ip = int <| inst.IP - address
142
+ let instRelativeIp = int <| inst.IP - address
143
143
if showOpcodes then
144
- let inst_opcode_hex = bytes[ inst_ relative_ ip.. inst_ relative_ ip + inst.Length - 1 ]
145
- |> Array.fold ( fun hex b -> sprintf " %s %02x " hex b) " "
146
- writer.WriteLine $" L%04x {inst_relative_ip}: %45s {inst_opcode_hex} %s {out.ToStringAndReset()}"
144
+ let inst_opcode_hex = bytes[ instRelativeIp.. instRelativeIp + inst.Length - 1 ]
145
+ |> Array.map ( fun b -> sprintf " %02x " b)
146
+ |> String.concat " "
147
+ writer.WriteLine $" L%04x {instRelativeIp}: %45s {inst_opcode_hex} %s {out.ToStringAndReset()}"
147
148
else
148
- writer.WriteLine $" L%04x {inst_relative_ip }: %s {out.ToStringAndReset()}"
149
+ writer.WriteLine $" L%04x {instRelativeIp }: %s {out.ToStringAndReset()}"
149
150
writer.Flush()
150
151
151
152
Original file line number Diff line number Diff line change 17
17
<PackageProjectUrl >https://github.com/d-edge/fasmi</PackageProjectUrl >
18
18
<RepositoryUrl >https://github.com/d-edge/fasmi</RepositoryUrl >
19
19
<PackageLicenseFile >LICENSE</PackageLicenseFile >
20
- <Version >1.1 .0</Version >
20
+ <Version >1.2 .0</Version >
21
21
</PropertyGroup >
22
22
<ItemGroup >
23
23
<Compile Include =" FileSystem.fs" />
You can’t perform that action at this time.
0 commit comments