Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Learning Assembly

Status
Not open for further replies.

kazsemisonic

Programmer
Aug 22, 2005
1
0
0
US
Hey everybody,
I'm just starting to learn assembly and got the fasm compiler. I compiled a program so now it's a .bin. But from what I've read in a tutorial, I still need to "link" it to get the .exe. Does fasm come with a linker? If it does, then how do you link it? Thanks for the help.

btw, here's the code:
MOV AH,02
MOV DL,"!"
INT 21h
MOV AH,04Ch
MOV AL,00
INT 21h
 
If it doesn't come with a linker, I suspect any linker will do - check out they should have some listed.

If you can't find one easily, let me know and I'll see what I can find.

Good luck!

Tom

"My mind is like a steel whatchamacallit ...
 
My recomendations

dump fasm

goto


you will find the appropriate links to get
HLA. This is what I am doing.

also download the text

The Art of Assembly Language Programming

the pdf version for windows. Or the linux
version if you are so inclined. you will
also have to get the masm32 package.

the HLA system is very good. the book is
straghtforward. and I have not had any problem
running any examples so far. I would think that
you would eventually go to the masm32 assembler
if you get serious, but the HLA is the best start.

these are conclusions I have arrived at from a week
of comparing the different assemblers. I think I have
the top 5 assemblers and text. HLA is very user freindly.
I think that is the intention afterall. to quickly get
up and running. yu will be able to do this with HLA.

tomcruz
 
I agree with the HLA recommendation. Would have suggested it in my original post but was trying to simply answer the question you posed.

Have been working with computers since the days of toggle switch programming (!), used to use TASM but really, REALLY like HLA. Even bought the book - all 900+ pages of it - and find it fascinating.

Lots of folks ask if it's 'real' assembler - short answer: yes. HLA is, I'm guessing here, a bunch of macros which provide a high level, user friendly interface to assembler. However, if you want, there is a directive that lets you code directly in assembler bypassing HLA.

Go with HLA if you have a choice - it's definitely better than anything else out there.

"My mind is like a steel whatchamacallit ...
 
I'm using HLA Myself and having a bit of a problem in accessing Arrays
Declaring them doesn't seem to be a problem.
But accessing it seems to throw abunch of errors

Element_Address = Base_Address + index * Element_Size

Just how the hell do you do the element_address part

i understand the 'base_address index * element_size'
but not that element_address
i've tried for example
a[1] = a + index*4;
and other ways that didn't work

how the heck do you do this? i tried the instructions on the 'Art of assembly Language' to no avail.
 
Hi.

I just started with asm programming. I use the RosAsm assembler. It written espesially to do Win32 applications.
It does not require you to link anything, all such mundane tasks are handled for you. Which I think is good for beginners, and effective for more experienced programmers.

Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top