You are here:

Assembly Language/Need to Get Started in Assembly

Advertisement


Question
Jeronimo,
can you help me get started in assembly, what i need is just some code to get started something that demonstrates lots of the basics. also if there are any websites that you think can get me started that would be appreciated too, and can you show me how to call a Windows-API call. thanks alot for your help. i dont know exactly what i will be using but for sure its some x86 compiler. also maybe just without a compiler using a Hex Editor or something if i learn the binary way of doing it.

Answer
John:

Assembly is easy to get examples of because
anything can be disassembled.  If you're windows
or MS-DOS, get a command prompt, pick the file you
want to see and type "debug win.com" or whatever
file you want.  Then type "u" until you get through.
If you create a file that contains

u
u
u
u
u
u
u
u
q

named unasmble you can type
"debug win.com < unasmble > asm.txt"
There should be as many lines with u as there are
lines of assembly code.  While it's  possible to
write in opcode(with hex editor), it's probably a
waste of time.  But, debug will also write in hex
if you want to do so.  While assembly is great for
utilities, I wouldn't dream of doing a windows program
in it.  Debug(Microsoft's micro assembler) shipped
with their OS for many years now.  You probably have
it.

Favorite assembler: Borland tasm

Favorite asm book: 386 Assembly Language
WrittenBy: Penn & Don Brumm

Favorite Assembly Websites:
http://webster.cs.ucr.edu/Page_asm/ArtofAssembly/ArtofAsm.html
http://www.linuxdoc.org/HOWTO/Assembly-HOWTO/

Hope this helps, if you have trouble finding
the book, let me know & I'll dig up the publisher.
Jeronimo

Assembly Language

All Answers


Ask Experts

Volunteer


Jeronimo Bonno

Expertise

I can answer 80386+ assembly questions. Also 386 programs that won`t run on 486. It`s easier than you think. Have some knowledge of 086, but not much. Know DOS interrupts well, but wouldn`t think of doing windows programs in assembly.

Experience

I started with assembly in 1971. I was young but my dad taught it at college & I went to class with him. C was just released in '70 & it took a while for it to work. For compact .com programs, like hardware control, you can't beat asm.

Education/Credentials
MS. Chemistry

©2012 About.com, a part of The New York Times Company. All rights reserved.