Article ID: 39381
This article was previously published under Q39381
This article has been archived. It is offered "as is" and will no longer be updated.
The Microsoft Macro Assembler Version 5.10 includes several new features (not found in MASM Version 5.00 or earlier) that simplify assembly-language routines linked with high-level language programs Two of these features are as follows:
Section 5 of the "Microsoft Macro Assembler 5.1: 5.1 Update" manual discusses the new features.
Page 332 of the "Microsoft QuickBasic Version 4.00: Learning and Using QuickBasic" manual provides an example of an assembly-language function called by Basic. The example from Page 332 is modified below to demonstrate the new features in the Microsoft Macro Assembler Version 5.10.
Compile and Link Instructions are as follows:
BC power.bas;The following is the Basic Program, POWER.BAS, which invokes the assembly language function POWER2:
LINK power + powera;
The following is POWER2.ASM, an example of using the extended .MODEL and .PROC directives in MASM 5.10:
For comparison, the following is the equivalent, earlier (MASM Version 5.00) form for POWER2.ASM, taken from Page 332 of "Learning and Using QuickBasic" (for Versions 4.00 and 4.00b, and Basic Compiler Versions 6.00 and 6.00b):
Article ID: 39381 - Last Review: February 27, 2014 - Revision: 1.2
Contact us for more help
Connect with Answer Desk for expert help.