Site hosted by Angelfire.com: Build your free website today!
Assembly Programming

Assembly(ASM) is the barebones language. Everything was programmed in ASM, if it wasn't then it was programmed in machine code which is binary numbers. Anyway, you need to know how to compute numbers in the binary and hexidecimal systems. Converting decimal numbers to binary and hex and vice versa is good. There are calculators online that will do this for you, but be careful, i've seen some online that didnt work right! You also need to know about the hardware of the computer. the processor has registers that hold data and set flags, but theres alot more. The PIC sets up interrupts, RAM and memory addressing, that stuff. Well I'm not gonna re-write all that stuff here, so check the links below to learn the basics. This page is about ASM code and programs for the Intel 80386/486 machines. Some stuff here will be valid for the older 80186/286, but the majority is all 32 bit.


You can program ASM with a simple text editor, but there are different compilers out there. If you have Win9x then you have the debug.exe program in windows\command This program will let you make and edit ASM programs. The output is a .com file There is:

Borland Turbo Assembler(TASM) which i can't find anywhere online
Microsoft Macro Assembler(MASM) which i have a book on that came with it
Netwide Assmebler(NASM) my first compiler, its free and nice
Emu8086 This is alot like MASM/TASM in the code, but it's got a GUI to use in Windows and an emulator to debug your programs. This is my favorite


Thats all the compilers i can think of, i suggest you should get one and the tutorial on it and some code to learn by and stick to that compiler but you should learn Debug first.

So what kinda stuff do you program in ASM? Well anything from drivers for any computer device such as a keyboard, USB, CD-ROM, etc to Windows applications. If you want to write your own OS ASM is the best choice. A lot of virus code is programmed in ASM, some of which I have here to download. You should know this, but I will tell you to save my ass. The virus code is NOT harmful. It's a text file with the code, if you compile and run the code on your system it will take effect!

 

 

 

Links


80x86 instructions
Tutorial
Download NASM
NASM Tutorial and stuff
Table of INTerrupts
Debug Tutorial
TASM IDE Page
Very nice ASM Tutorial
John Fine's Homepage, GREAT for NASM code and freeware
Protected Mode(PMODE) in C and ASM
Nice FAQ and links about programming an OS
Emu8086 Compiler and Emulator, like MASM but better!
ASCII Table
x86 Instruction Set
Another x86 Instruction Set


ASM Source Code

Ambulence Virus
Acme Virus
Generic Virus

Home
Programming Page