V
V
Vadim Ushakov2021-10-01 11:46:29
assembler
Vadim Ushakov, 2021-10-01 11:46:29

Converting intel to another assembler representation, how?

Can anyone write the equivalent of this in the form https://en.cppreference.com/w/cpp/language/asm

push   edx
        push   ecx
        push   ebx

        mov    eax, 'VMXh'
        mov    ebx, 0     // any value but not the MAGIC VALUE
        mov    ecx, 10    // get VMWare version
        mov    edx, 'VX'  // port number

        in     eax, dx     // read port
                            // on return EAX returns the VERSION
        cmp    ebx, 'VMXh' // is it a reply from VMWare?
        setz   [rc]        // set return value

        pop    ebx
        pop    ecx
        pop    edx

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Ushakov, 2021-10-01
@Nightmare1

manpages.ubuntu.com/manpages/bionic/man1/intel2gas... Found the converter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question