Indirect calls using MASM 6.1 (how?) 
Author Message
 Indirect calls using MASM 6.1 (how?)

Subject says it all.  On p 180 the Masm 6.1 programmers reference states:

CALL {label|register|memory}

The operand contains a value calculated at run time.  Since that operand
can be a register, direct memory operand, or indirect memory operand,
you can write call tables similar to the example code on page 164.

------------------ end quote  ------------

I've tried a variation (call instead of jmp) of the FAR16 example on
page 163 of the programmers reference with no luck.  The example on
p 164 uses near jumps.

The following worked in in Masm 5.0:

entry      label dword
entry_off  dw      ?
entry_seg  dw      ?
    call [entry]

Why not in 6.1 using OPTION M510?  I've tried small and large model
with zip results.

What am I missing??



Fri, 19 Jul 1996 11:56:20 GMT  
 Indirect calls using MASM 6.1 (how?)
DM> The following worked in in Masm 5.0:
DM> entry      label dword
DM> entry_off  dw      ?
DM> entry_seg  dw      ?
DM>    .
DM>    .
DM>     call [entry]

It should generate FAR CALL opcode to a location of address
[entry_seg]:[entry_off] regardless of what version of assembler you use.
Any assembler which generates other opcode should be assumed defective.
Hope MS will replace it without any extra cost.

Sun, 21 Jul 1996 21:53:11 GMT  
 [ 2 post ] 

 Relevant Pages 

1. MASM 6.1 *USES* doesn't work

2. Using MASM 6.1 with Windows 95

3. indirect call with MASM?

4. Microsoft MASM 6.1 Upgrade

5. MASM 6.1

6. MASM 6.1 32-bit Windows template

7. Upgrades from MASM 6.1

8. MASM 6.1 and QEMM 8, known problems?

9. MASM 6.1, Rought Price Estimate Please?

10. Error DX1020 with MASM 6.1

11. A+B != B+A (Masm 6.1 bug ?)


Powered by phpBB® Forum Software