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

前端 未结 3 893
迷失自我
迷失自我 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条回答
  •  再見小時候
    2020-12-02 03:02

    i have been testing with MASM 6.15 this code, i think this can help you.

        .model small
        .386
        .stack 100h
    
        .DATA
         Message    DB  'hello','$'
         JMPPOS DB  78h,56h,34h,12h  ;the address to be jumped to  1234:5678
    
        .code
        .startup
    
         JMP  dword  ptr [JMPPOS]
    
        .exit
        END
    

提交回复
热议问题