Indirect Far Jump/Call in MASM 5.10

ID Number: Q50405

5.10

MS-DOS

Summary:

The following example demonstrates how to generate an indirect far

call or jump in MASM:

.model large

.data

jumptable dd routine1

dd routine2

.code

start: mov ax,@data

mov ds,ax

call dword ptr jumptable

jmp dword ptr jumptable+4

ret

cseg segment word public 'code'

routine1 proc

ret

routine1 endp

routine2 proc

ret

routine2 endp

cseg ends

end start