Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect disassembly #1

Closed
tathanhdinh opened this issue Feb 27, 2019 · 2 comments
Closed

Incorrect disassembly #1

tathanhdinh opened this issue Feb 27, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tathanhdinh
Copy link
Contributor

tathanhdinh commented Feb 27, 2019

(many thanks for this new framework, I'm just discovering it)

Describe the bug
Incorrect disassembly of instruction

44 0f 20 c0    mov rax, cr8

To Reproduce

  1. Run this piece of code
open B2R2
open B2R2.FrontEnd

[<EntryPoint>]
let main argv =
  let isa = ISA.OfString "amd64"
  let bytes = [| 0x44uy; 0x0fuy; 0x20uy; 0xc0uy |]
  let handler = BinHandler.Init (isa, bytes)
  let ins = BinHandler.ParseInstr handler 0UL
  ins
  |> fun i -> i.Disasm ()
  |> printfn "%s"
  0
  1. See output
mov eax, cr0

Expected behavior

mov rax, cr8

Environment (please complete the following information):

  • OS: Windows 7 x64
  • .NET Core version: 2.2.104
  • B2R2 version: latest from Github
@tathanhdinh tathanhdinh added the bug Something isn't working label Feb 27, 2019
@sangkilc
Copy link
Member

Thanks for the report 👍

We will fix this issue ASAP.

@tathanhdinh
Copy link
Contributor Author

Thanks for the prompt response @sangkilc .
As said, I'm just discovering B2R2 (hopefully can contribute someday).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants