04. August 2006, 11:59:45
This parser is suitable for use in a script engine or for parsing any data strings
that use symbols as well as words. Call it repeatedly to indicate sequential words
and symbols in a string of text.
I have written it to accelerate my scripting language; the machine code is only 251 bytes
long and on the demo test my PC pushes out about 19 million words per second.
The code can be used inline or in its own subroutine or function. It interfaces PowerBasic
code with just 5 variables.
For further interest:
Once you understand the basics of how a Pentium works. the Assembler is surprisingly easy.
The rules are very strict but relatively simple compared to high level languages.
With careful incremental coding and testing, you can directly tap into the formidible processing
power of the x86 processors and outperform any compiled code.
Intel documentation for download from
http://www.intel.comIntel Architecture Software Developer’s Manual Volumes 1 to 3
The most useful reference is volume 2 chapter 3.
Also, the PowerBasic Help topic on the inline assember discusses how PowerBasic variables can
be used with assembler.