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

arch/x86: Fixed FCLEX/FNCLEX, FCMOVcc, etc... instructions not parse #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion x86/x86spec/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func parsePage(p pdf.Page, pageNum int) *listing {

// Table follows; heading is NeoSansIntelMedium and rows are NeoSansIntel.
i := 0
for i < len(text) && match(text[i], "NeoSansIntelMedium", 9, "") {
for i < len(text) && (match(text[i], "NeoSansIntelMedium", 9, "") || match(text[i], "NeoSansIntelMedium", 7.2, "1")) {
i++
}
for i < len(text) && match(text[i], "NeoSansIntel", 9, "") && text[i].S != "NOTES:" {
Expand Down Expand Up @@ -820,6 +820,9 @@ func processListing(p *listing, insts *[]*instruction) {
case "Opcode":
inst.opcode = x

case "1":
// pass

case "Instruction":
inst.syntax = x

Expand Down