Page 1 of 1

QB-Assembler listing

Posted: Sat Jul 30, 2005 4:32 am
by Valerie
:D For anyone interested in seeing what their QB program looks like in Assembler. This listing shows the QB statements followed by the Assembler codings:

Compile your .bas listing with the BC.EXE compiler which comes with QB and use the /A option. You have to enter the .lst filename when prompted otherwise the .lst file will not be produced.

e.g. When the default directory holds both bc.exe and your .bas listing enter BC.EXE /A FILENAME.BAS (file suffixes can be omitted, the compiler will use them automatically)

The first prompt is for the name of the .obj file to which you can enter a filename or just hit Enter. The second is for the name of the .lst file. Type your chosen filename here then hit Enter. The .lst file will be created in the default directory and can be listed/printed using a utility such as Type, More, Edit, Notepad, Print etc...

V... :lol:

Posted: Sat Jul 30, 2005 3:30 pm
by Ralph
Valerie:
Very nice. And, your instructions were clear and concise. Congratulations on such a professional manner. :D :D :D

Posted: Sun Jul 31, 2005 4:07 am
by Valerie
Ralph - thank you kind sir.

I wasn't sure what kind of reception I would get after mentioning Assembler on a QBasic forum, some folks can be kinda touchy. Here's another bit of (useless) info.

If you'd like to list the index of a QBasic .lib file make your QBasic directory the default then at the command prompt type:

Lib.exe libfile.lib,libfile.txt

where libfile.lib could be brun45.lib or bcom45.lib and libfile.txt could be any filename. libfile.txt will contain the index of libfile.lib. Extensions are optional.

I have not yet found a definition of what each routine does, some are obvious, most are not.

Here's hoping!

V...