|
|||||
|
|
|
This page will likely be of interest only to real assembly language
programmers. High-level OOP aficionados will have no choice but to disagree
with the information presented here, as it is entirely to basic and
nonabstract for them to comprehend.
It is possible to write assembly language programs for Windoze that do not look and act like C, Delphi or Visual Basic. It is possible to do it quickly and simply, without an IDE, a stack of make files, a drive full of include and library files, a giant encyclopedia of documentation or even Windoze itself. All the examples on this page (as well as this page itself) were created with the MICOSYEN program editor under Windoze 98. All can be assembled and linked with DOS tools on a DOS computer or in a DOS box under Windoze. It is also possible to create a pair of applications from a single source file--one for Windoze and one for extended DOS. Download the Simple Windoze/extended DOS application template and read the comments for more information. The MICOSYEN "dinosaur WordStar syntax" program source editors were created using this methodology. All three versions share common source code and are made in a single step. |
| Below, are links to everything needed to build a simple Windoze GUI or console application in 100 ms or less. These example programs were ported from DOS, using methodologies and procedures from the world of embedded controllers. They were written from scratch, not "optimized" from the output of some compiler. Hence they look and act like real assembly, unlike that incomprehesible MASM stuff we find all over the Internet. |
| Tools | ||
|---|---|---|
| MICOSYEN source editor for DOS | 11-23-05 | 23.85k |
| MICOSYEN source editor for Windoze (132 x 50 box) | 08-16-08 | 31.50k |
| MICOSYEN source editor for Windoze ( 80 x 60 box) | 08-16-08 | 31.50k |
| MICOSYEN source editor for Windoze ( 80 x 25 box) | 08-16-08 | 31.50k |
| Spell dictionary for editors | 08-16-08 | 148.80k |
| TASM5/TLINK32 for DOS | 05-13-02 | 267.08k |
| TASM32 for Windoze | 02-26-04 | 101.41k |
| TLINK32 for Windoze | 02-26-04 | 104.87k |
| TD32 for Windoze | 02-26-04 | 292.47k |
| Borland Windoze import library | 02-26-04 | 83.48k |
| Example Source Files | ||
|---|---|---|
| Bare simplest Windoze console application template | 11-19-04 | 7.06k |
| Simple Windoze console application template | 11-19-04 | 16.51k |
| Simple Windoze/extended DOS application template | 11-19-04 | 21.05k |
| Windoze console application common subroutines | 08-19-05 | 20.70k |
| Windoze console application template | 07-06-05 | 2.48k |
| Simple Windoze GUI application template | 11-19-04 | 8.59k |
| CpuSpeed.asm (Console example) | 11-19-04 | 7.90k |
| Kscope.asm (GUI example) | 11-19-04 | 15.70k |
| Straw.asm (GUI example) | 11-19-04 | 10.97k |
| Dots.asm (GUI example) | 11-19-04 | 10.10k |
| Matrix.asm (GUI example) | 11-19-04 | 32.40k |
The easiest way to make a Windoze assembly application is with a small
batch file. Here is a template:
tasm32 /ml/m4/t/z %1 tlink32 -Tpe -aa -x -Lc:\apps\tasm5\lib %1,,,import32 del %1.objYou will need to change the path to the import library after "-L" ("c:\apps\tasm5\lib" in this example). Also please note that the "-aa" option should be changed to "-ap" to build a console application. |
|
There is no good single source of documentation for Windoze function calls,
structures and variables. The best information always comes from an existing
source file, but those are rare. There are two comprehensive free resources
for learning the mysteries of Windoze programming. The first is the Platform
SDK, which can be downloaded from Microsoft. It contains everything that is
known about Windoze, but be forewarned. It is huge, cumbersome, ill-conceived
and poorly coded. It installs, writes stuff all over your hard drive and
comes with everything in the world you don't need or want. Every time the
documentation is accessed, the Microsoft Debug Manager is loaded, thereby
causing permanent temporary files to be written to the Windoze directory.
In every way, it is the perfect example of why this page exists.
The other resource is the win32.hlp file that ships with Borland Delphi. It can be found many places on the Internet. A Google search for "win32.hlp" should turn up good number of links. The initial file is about 13 MB and expands to twice that size. The viability of this tool is severely compromised, however, by the usage of the old 16-bit Windoze help engine, with its non-realtime scrolling. |
|
Another useful resource is windows.inc. This
file contains the most popular structure and constant definitions, collected
from the millions of MVC header files. It cannot be included in a TASM
source file, because it is filled with nonsensical MASM constructs, but
relevant sections can be extracted and placed in your source code. It
should be available from the following sites:
http://win32asm.cjb.net |
|
Since the vast majority of Windoze code examples are in C++, here are some
rules for porting from C to assembly.
|
| Home | About Us | DOS | Asm | Windoze | PHP | Radio | MP3 | Funny | Bad Stuff |
|
Page dynamically generated: July 4, 2009, 3:56:01 CDT. Small print © Copyright 1998-2009 MICOSYEN. All Rights Reserved. (as if this might prevent you from stealing whatever you want) |
|||||||||