Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

assembly language programming

Status
Not open for further replies.

nserudin musa

Newbie level 6
Joined
Mar 17, 2011
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,291
Activity points
1,385
hi learning assembly language becomes very difficult for me would you please tell me simple reference material which helps me in understanding this language? thank u .
 

ckshivaram

Advanced Member level 5
Joined
Apr 21, 2008
Messages
5,070
Helped
2,146
Reputation
4,298
Reaction score
2,087
Trophy points
1,393
Location
villingen (Germany) / Bangalore
Activity points
30,097
first tell which controller you are learning the assembly language... the syntax and format and instruction set are different for different controllers and IDE used....
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
14,375
Helped
4,727
Reputation
9,469
Reaction score
4,496
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
122,660
Firstly, all programs are written in assembly language, even high level compilers use it, they hide it in libraries so you don't see it but it is still there.

Don't be frightened by assembly language, in many ways it is easier to use than C, Pascal and BASIC. Just remember that you have to break your programming task into the smallest steps possible, each step then becomes a single assembler instruction. You can make very efficient and very small programs by only using the steps you need, most other languages will add extra code to make thier routines 'general purpose' but irrelevant to your program.

I would suggest you pick which type of processor you want to use then look at the manufacturers web site. Download the data sheet and study it carefully. Don't think in terms of your overall project, just concentrate on the individual instructions the IC can do. A good understanding of the instruction set is essential to writing any program. When you have a good idea of what the device can do, see if you can download an assembler program for it. Most manufacturers offer you their own free assemblers and there are many others on the Internet if you search. Most also have simulators so you can try your program without having to use a real IC. Start by doing something very simple, for example making one pin rise and fall repeatedly. This will give you confidence you have configured the processor properly, managed to control the pin and managed to create a program loop. When you know it has the confidence it is running, start adding more code and experimenting with timers and other 'peripherals' inside the IC.

Brian.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top