Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

AsmSource : Assembly Language Programming

Win Source

Dos Source

Links

Email

Utilities


Windows (32-bit) Assembly Language Programs

Here are some example programs that I have written, in my attempt to learn windows programming.  They are very simple at this stage, and illustrate some useful functions. Feel free to download these programs, and their source code. For more complex programs, go to the harder program page. If you want to alter and compile the code, you will need a compiler, such as the one on the utilities page. 

You can download the zip files, which contains the Asm source file, plus the executable, and information on how to compile it. Or you may view the Asm file. If you have any problems, you can email me at asm@megablast.8k.com.

     
   

timer32.asm

Creates a timer event, that invokes a WM_TIMER message every so often. This program also changes the title of the program, so that count is indicated in the taskbar.

Download Zip File (5,773 bytes)  

View Asm File (4,158 bytes)


bitmap32.asm

Draw a bitmap on the screen. The bitmap is included in the executable file through the resource file.

 

Download Zip File (122,700 bytes)  

View Asm File (4,377 bytes)


About32.asm v0.1

This is a program which demonstrates using a dialog box, to display information in the about box. Thanks to betrayed and his program resolver.zip. This program is incomplete, the link should change colour when the mouse is over it.

Download Zip File (10,445 bytes)  

View Asm File (10,330 bytes)


PopupMenu32.asm

Demonstrates a simple win32 program.Opens a window with a menu, and show how to accept input form the menu. Also adds on a popupmenu, accessed by the right button, and shows how to create a menu from scratch.

Download Zip File (5,027 bytes)  

View Asm File (6,838 bytes)


searchfile.asm

Searches throught a file for all instances of a string, and prints out that line, with the line number. Show how to load a file into memory, and then look through it.

Download Zip File (5,864 bytes)  

View Asm File (5,280 bytes)


View32.asm v0.1

View the contents of a file, in Text, Hex and Dump. This program is incomplete.

 

Download Zip File (14,891 bytes)  

View Asm File (15,858 bytes)


Scrollbar2 32.asm

Shows how to use the vertical scrollbar and horizontal scrollbar. This is an updated version to vscroll32.asm below and handles resizing of the window properly, and watch as the scrollbox (thumb) changes size when you change the window size. Update: New flicker free version included.

Download Zip File (7,160 bytes)  

View Asm File (13,127 bytes)


Vscroll32.asm

Shows how to use the vertical scrollbar (things are very similar for the horizontal scrollbar).Illustrates procedure calls ShowScrollBar and SetScrollInfo.

Download Zip File (4,531 bytes)  

View Asm File (3,584 bytes)


Toolbar32.asm

Incorporates a toolbar into our program, and print out the selected code. Demonstrates CreateToolbarEx function .Thanks to GE2001@yahoo.com and his program td_win32asm_022 available at http://surf.to/TestD.

Download Zip File (12,304 bytes)  

View Asm File (5,995 bytes)


Regi32.asm

Program which records in the registry how many times it has been run, and prints this out. Demonstrates the use of the registry access functions, RegCreateKeyEx, RegQueryValueEx, RegSetValueEx, RegCloseKey. Thanks to ernie@surfree.com for his excellent source code.

Download Zip File (4,442 bytes)  

View Asm File (8,033 bytes)


Tree32.asm V0.1

Program which shows a directory tree of the current directory and all the subdirectories contained within. There is a dos version available here. [Work in Progress]

Download Zip File (5,508 bytes)  

View Asm File (11,234 bytes)


Hello.asm

This is a very simple windows program, to illustrate the extra overhead involved with programming under windows. It simply creates a window, and prints out the text Hello World using TextOut.

Download Zip File (3,469 bytes)  

View Asm File (3,952 bytes)


Mouse.asm

Another simple program, that opens a window, and displays the mouse coordinates, and the position of the left and right buttons. Demonstrates the use of the wsprintf function, to print out numbers.

Download Zip File (4,010 bytes)  

View Asm File (6,099 bytes)


Menu.asm

Demonstrates adding a menu to your program. Opens a window with a menu, and show how to accept input from the menu. Illustrates how to incorporate a simple resource file into our program, and the Makefile. Also introduces the MessageBox function, to create a simple window.

Download Zip File (4,460 bytes)  

View Asm File (5,455 bytes)


Icon.asm

Uses an icon to replace the boring windows default. Very simple program, but important use of resource file.

Download Zip File (7,078 bytes)  

View Asm File (3,980 bytes)


Drop.asm

Changes the properties of the window using DragAcceptFiles, allowing it to accept a dropped in file, and then prints out the file name using DragQueryFile function.

Download Zip File (3,510 bytes)  

View Asm File (3,957 bytes)


Dropmany.asm

A minor extension to drop.asm, by allowing many files to be dropped, rather than just 1. Prints out how many were dropped, then the names.

Download Zip File (3,891 bytes)  

View Asm File (4,904 bytes)


 
   
     

go to Windows Harder Programs

Last Updated : Tuesday, September 18, 2001 08:25:10 PM

theCounter.com

(C) Copyright 1999,2000,2001 John A Lyons