MASM

 BBS: Inland Empire Archive
Date: 03-26-92 (09:00)             Number: 115
From: MATT HART                    Refer#: NONE
  To: ROBBIE CHURCH                 Recvd: NO  
Subj: MASM                           Conf: (2) Quik_Bas
 RC>   remember very little.  How much does
 RC> MASM, or QASM set you back these days?
 RC>   are ALL versions linkable with QuickBASIC?

MASM 6.0 can be had from most mail order firms for around $100 - $125.  All
versions of an assembler can work with QB - but with
differing levels of complexity.  Some don't support MS
Basic directly.  The main result of that is you must use
direct stack techniques to retrieve your stuff from the
parameter list rather than using a variable, and you must
POP them back off the stack before returning to QB.  MASM
has the .MODEL ...,{language} support, which PUSHes DS and
POPs DS and your parameters upon return.  No big deal if
that's not supported, but a little more cryptic:

.MODEL MEDIUM
.PUBLIC
.CODE

IsNull PROC
     PUSH DS
     PUSH BP
     MOV  BP,SP
     MOV  [BP+4],BX     ; This would get the LAST parameter - that is,
                        ; the string descriptor address in the case of
                        ; IsNull, much more cryptic than:

IsNull PROC Strg:Word
     MOV  BX,Strg


'XRS 5.0 Offline Reader/Editor'  Matt E. Hart, QB Guru

---
 * Origin: Midnight Micro!  V.32/REL  (918)451-3306 (1:170/600)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET