GNU Info

Info Node: (nasm.info)Section 2.2.5

(nasm.info)Section 2.2.5


Next: Section 2.2.6 Prev: Section 2.2.4 Up: Section 2.2
Enter node , (file) or (file)node

2.2.5. NASM Doesn't Support Memory Models
-----------------------------------------

   NASM also does not have any directives to support different 16-bit
memory models. The programmer has to keep track of which functions are
supposed to be called with a far call and which with a near call, and
is responsible for putting the correct form of `RET' instruction
(`RETN' or `RETF'; NASM accepts `RET' itself as an alternate form for
`RETN'); in addition, the programmer is responsible for coding CALL FAR
instructions where necessary when calling _external_ functions, and
must also keep track of which external variable definitions are far and
which are near.


automatically generated by info2www version 1.2.2.9