PowerBASIC Information Center Tutorials
These tutorials were written to help you get a quick, but thorough, understanding of PowerBASIC -
the scope of the language as well as it's specific capabilities.
PowerBASIC allows you to embed assembly language statement within the source
code of a PowerBASIC program. Programmers sometimes find that assembly
language code provides better performance or simply allows the programmer
to add features that PowerBASIC does not directly support.
The PowerBASIC compiler can compile the assembly language statements
directly into your PowerBASIC application without the need for an external
assembler (assembly language compiler).
Whole programs, procedures, or simply lines of code can be written in assembly
The use of assembly language does involve accepting some constraints on
program data types and variable names. See the PowerBASIC Help file
for more details on embedding assembly language code.
Here are a couple of a examples which show the basic syntax for including
lines of assembly language code in PowerBASIC applications.
LOCAL a&, b&, c&, z&
ASM MOV EAX, a&
ASM ADD EAX, b&
ASM ADD EAX, c&
ASM MOV z&, EAX
The "ASM" notation can be replaced with an "!" (exclamation point).
If you have any suggestions or corrections, please let me know.