Q. Explain Simple Interfacing?
The following is a sample of the coding, used for procedure interfacing:
PUBLIC CUROFF
_TEXT SEGMENT WORD PUBLIC 'CODE'
ASSUME CS: _TEXT
_CUROFF PROC NEAR ; for small model
:
:
The same thing can be written using newer simplified directives in the following way:
PUBLIC CUROFF
.MODEL small, C
.CODE
CUROFF PROC
:
:
This second source code is much easier and cleaner to read. The directives .MODEL and .CODE instruct the assembler to make necessary adjustments and assumptions so that routine will work with a small model of C program. (Pleaserefer to Assembler manuals on details on models of C program. The models primarily vary in number of segments).