I\'ve got the code segment and the offset values stored in two registers, say AX and BX respectively. In NASM how can I encode a far call to AX:B
AX
BX
AX:B
You have to put them in memory. You can’t perform a far call through registers. Assuming bp is set up as a frame pointer, you can use something like this:
push ax push bx call far [bp-N] add sp, 4
(with a suitable value for N).