How to code a far absolute JMP/CALL instruction in MASM?

前端 未结 3 890
迷失自我
迷失自我 2020-12-02 02:05

How can I write a far absolute JMP or CALL instruction using MASM? Specifically how do I get it to emit these instruction using the EA and CA opcodes, without manually emitt

3条回答
  •  萌比男神i
    2020-12-02 02:44

    Have you considered using the __emit pseudoinstruction?

    https://msdn.microsoft.com/en-us/library/1b80826t.aspx

    I once had to use inline assembler to code a far jump. I can't remember the opcode for a far jump, but you could do something like this

    __emit      0eah
    __emit      0
    __emit      0
    __emit      0
    __emit      0
    __emit      8h
    __emit      0
    

提交回复
热议问题