Menu

how to call dword [oldptr] in nasm

2009-02-09
2013-06-04
  • Nobody/Anonymous

    I'm trying to convert a TASM source file containing all 8086 code to NASM format but I'm having a problem trying to convert this TASM line of code, this is the output from the assembly listing file:

    304 0211  FF 1E 0242r                    call    dword ptr oldptr

    330 0242  0000 0000              oldptr  dw      0,0

    With BITS 16 and CPU 8086 set in my nasm sources and trying to use:

    call    dword [oldptr]

    Results in:

    error: no instruction for this cpu level

    What syntax do I need to generate the equivalent 8086 machine code of 'FF 1E HHHH' ?

     
    • Nobody/Anonymous

      After some more experimenting I managed to find the solution:

      442 00000211 FF1E[4202]                      call    far [oldptr]

      330 0242  0000 0000              oldptr  dw      0,0

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.