********************************************************************************
*
*   \         (c) Thomas Antoni, 14.11.2002 - 9.11.2004
*    \ /\           Mailto:thomas@antonis.de
*    ( )            Downloaded from www.antonis.de --- www.qbasic.de   
*  .( o ).
*                        ----==== Hottest QBasic Stuff on Earth !!! ====----
*
********************************************************************************

********************************************************************************
*
* .----------------.
* | ENGLISH  INFO  |  (Deutsche Info: Siehe unten)
* '----------------'
*
* "Assembly in QBasic" - 62 page tutorial by Petter Holmberg
* ==============================================================================
*
********************************************************************************

*** ASM-Tutorial
This tutorial gives a short introduction of assembler 86 and how to use it in 
QBasic. The author describes a method of converting ASM source code into a 
hexadecimal string by using the DEBUG command of DOS and using this together 
with QBasic's CALL ABSOLUTE statement for lauching the ASM code from within a 
BAS program.


*** ABSASM
The small tool "Absolute Assembly" (absasm21.bas) is included which takes an 
ASM file and coverts it to a string that can be used in QBasic using the CALL 
ABSOLUTE statement.  

The program will let you choose a text file with Assembly source code, a 
destination file name and a string variable name. The result will be a set of 
commented BASIC string declaration lines in the destination file, ready to be 
executed with CALL ABSOLUTE. Detailed information on Assembler and how to use 
ist in QBasic can be found in the attached tutorial written by Petter Holmberg.

Some program paths have to be modified in ABSASM to fit your individual computer
configuration.

But unfortionately, I did never succeed to get this program working :-(
 

*** Rating
+    (in a range of + to +++)


********************************************************************************
*
* .---------------.
* | DEUTSCHE INFO |
* '---------------'
*
* "Assembly in QBasic" - 62-seitiges englisches Tutorial von Petter Holmberg
*                        zur Verwendung von Assemblerbefehlen in QBasic  
* ==============================================================================
*
********************************************************************************

*** ASM-Tutorial
Dieses Tutorial gibt eine kurze Einfhrung in Assembler 86 und darber, wie man
Assemblerbefehle innerhalb QBasic verwenden kann. Der Autor beschreibt wie man
menomotechnischen Assembler-Quellcode mit Hilfe des DEBUG-Befehls von MS-DOS in
einen hexadezimalen String (Maschinencode) umwandeln kann, der sich mit dem CALL
ABSOLUTE Befehl von QBasic aus einem QBasic-Programm heraus starten lsst.


*** ABSASM
Es liegt das kleine Tool "Absolute ASM" vom selben Autor bei. Um Assembler-Code 
in BASIC einzubinden ist das Programm ASM2BAS eine groe Hilfe. Es schreibt eine 
BAS-Datei, die den ASM-Code in Maschinencode umwandelt und per CALL ABSOLUTE 
startet.

asm2bas wird wie folgt am DOS-Prompt per Kommandozeile aufgerufen

         asm2bas meinprog.asm meinprog.bas

Die Arbeitsweise von asm2bas ist ziemlich einfach: Mit Hilfe der in DOS zur 
Verfgung stehenden DEBUG-Funktion wird zunchst der Assembler-Quellcode in Hex-
ASCII-Maschinencode umgewandelt. Das ist Hexa-Code, bei dem die einezelnen 
Hexazeichen 1...F als ASCII-Zeichen angegeben werden (je Hexazeichen ein Byte).

Dieser Maschinencode wird dann mit Hilfe des CALL ABSOLUTE-Befehls im Speicher 
abgelegt und gestartet.

Leider habe ich das Programm trotz Anpassung der Programmpfade im Quellcode
nie zum Laufen bekommen. Wer herausbekommt, wie dies geht, der sende mir bitte
eine Mail an thomas@antonis.de.

*** Webseite
Das Tutorial und ABSASM stammen von der sehr guten englischen QBasic-Seite
"Simply QBasic"
   
        http://lightning.prohosting.com

*** Bewertung
+   (in einer Skala von + bis +++)






