Git Product home page Git Product logo

Comments (9)

aquynh avatar aquynh commented on May 21, 2024

is this for x86 32bit?

from keystone.

mrexodia avatar mrexodia commented on May 21, 2024

Oh yes sorry I forgot to mention that.

from keystone.

aquynh avatar aquynh commented on May 21, 2024

how do Nasm, Xed, or any assemblers handle this case?

i tried with some, but none accepts "push word 0x0d" or "push dword 0x0d", or can distinguish the differences.

from keystone.

mrexodia avatar mrexodia commented on May 21, 2024

With XED there is no textual input so the user has to specify whether a word or dword was intended. OA assumes a dword per default (as does XEDParse) so I'd say assuming a dword is the correct behavior.

As for handling pushing a word I don't really know to be honest. This website mentions using pushw and pushd to explicitly tell the assembler what to emit.

from keystone.

iksteen avatar iksteen commented on May 21, 2024

nasm and gnu as in intel mode output 6A 0D for push 0x0d. nasm supports push word 0x0d (which outputs 66 6A 0D), gnu as supports push word ptr 0x0d in intel mode (which also outputs 66 6A 0D). I have no idea how to convince gnu as in AT&T mode to output these opcodes (pushw $13 yields 66 FF 35 03 00 00 00, which is push word [dword 3]).

from keystone.

aquynh avatar aquynh commented on May 21, 2024

this is fixed now

$ kstool x32 "push 0xd"
push 0xd = [ 6a 0d ]

$ kstool x32 "push word 0xd"
push word 0xd = [ 66 6a 0d ]

from keystone.

mrexodia avatar mrexodia commented on May 21, 2024

Great!

from keystone.

aquynh avatar aquynh commented on May 21, 2024

from keystone.

mrexodia avatar mrexodia commented on May 21, 2024

Yes I will look at all of them as soon as possible. I added some more tests
to XEDParse that currently fail for various reasons. I believe they pass
Keystone.
On Tue, 14 Jun 2016 at 19:17, Nguyen Anh Quynh [email protected]
wrote:

can you confirm all the other issues you reported? most of them are fixed
now.


You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
#10 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACWCmbjWgjW4YQHpTgoma7jVk8YvOO4Dks5qLuI5gaJpZM4ISiQq
.

from keystone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.