AsmSource : Assembly Language Programming

Dos Source

Win Source

Links

Email

Utilities

Windows (32-bit) Assembly Language Programs

Here are some example programs that I have written, as I 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. 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.

 

     
   

Resize v0.2

A simple program, that establishes a taskbar icon, enabling you to quickly and easily change the screen resolution.

Download Zip File (25,243 bytes)  

View Asm File (16,923 bytes)


MegaMail.asm v0.3

This program checks a number of mail servers, and tells you how many mail messages there are. (Project Info)

Download Zip File (46,950 bytes)  

View Asm File (33,268 bytes)


rename.asm v0.2

A program that I have needed for a long time. It is a many file renamer. That is, you select a dir, type in a phrase and it will replace that part of the filename with something new.

Download Zip File (16,689 bytes)  

View Asm File (28,621 bytes)


getip.asm v0.3

Gets the IP address for any website. Allows you to enter the host name, and retrieves the IP number. (Version Info)

 

Download Zip File (13,939 bytes)  

View Asm File (12,461 bytes)


ini.asm v0.3

Demonstrates how to use a .ini file, to access data that can be easily updated. This is an advantage over the registry, since the registry is incredibly slow. (Version Info)

Download Zip File (12,976 bytes)  

View Asm File (15,903 bytes)


ip32.asm v0.3

Program that displays the current IP number of the machine, and various Winsock information, like version, max sockets, max UDP size, system status, vendor info no. and description. (Version Info)

Download Zip File (13,602 bytes)  

View Asm File (13,095 bytes)


searchin32.asm v0.3

Program that searches recursively from a particular dir, for files of a specific type, containing a particular phrase. Prints out the part of the phrase line, and the line number. A simple extension the search32.asm. (Version Info)

Download Zip File (17,308 bytes)  

View Asm File (28,916 bytes)


search32.asm v0.1

Program that searches recursively from a particular dir, for files of a specific type. Prints out the part of the name of the file, and where the file is located.

Download Zip File (14,459 bytes)  

View Asm File (20,875 bytes)


memload32.asm v0.5

Program that displays the Memory load in a graph, within a small window. Includes a menu to change the options. Features a popup menu, saves settings to the registry, and a variable size window. (Version Info)

Download Zip File (15,281 bytes)  

View Asm File (26,019 bytes)


memgraph32.asm v0.3

Program that displays information about memory. Uses a timer interrupt to update, and a dialog box as the main window. Includes tab control to switch between stats, a graph and options. Thanks to 'RAZOR'X and his program mem-info and Latigo for his program Tab Control(Version Info)

Download Zip File (15,108 bytes)  

View Asm File (25,584 bytes)


mem32.asm

Program the displays information about memory. Uses a timer interrupt to update, and a dialog box as the main window. Also Changes the window text so that load is updated in taskbar. Thanks to 'RAZOR'X and his program mem-info.

Download Zip File (11,444 bytes)  

View Asm File (11,590 bytes)


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)


 

 
   
     

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

theCounter.com

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