ENTERZ Example
Example:
*
.Determine total configured memory in bytes.
.
TEMP
INTEGER
2
MEMORY
FORM
6
DISPLAY
"Get Memory Size"
ENTERZ
INT
12h
MOV
DS:WORD PTR @TEMP+1,AX
EXITZ
MULT
"1024",TEMP,MEMORY
"Memory is: ",MEMORY
This example illustrates the use of ENTERZ and EXITZ to switch to assembler source mode within a program.