Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Need help in assembly language

Status
Not open for further replies.

gowthams001

Newbie level 4
Joined
May 24, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,325
I'm working on a project which needs the code to be written in assembly language..
i'm a beginner..... i have a few questions.....

What platform do i write the code on? (like for c we use turbo c or visual c etc...)
 

keil is the best platform for writing the 8051 assembly language as well as C language codes
 
Last edited:

I'm working on a project which needs the code to be written in assembly language..
i'm a beginner..... i have a few questions.....

What platform do i write the code on? (like for c we use turbo c or visual c etc...)

What do you mean by platform?
If you mean OS then it can be on any OS which have a cross compiler for your target.

If you mean IDE then Kiel is there.
even you can write your code in an editor( I use gedit ) and compile using a cross compiler for my target platform(arm7, PIC, AVR, 8051).

using a simulator I see how my app behaves. If satisfactory then I download the bin/hex file to the controller.

Hope this helps?

Ashok.
 

What chips are you planning to use? It is not mentioned anywhere, and it would help in assisting you.
 

How does chip matter with C or asm program....... by his request it is clear that he will not use 32 bit or 16 bit chips. and we are suggesting him simple chips only.
 

How does chip matter with C or asm program....... by his request it is clear that he will not use 32 bit or 16 bit chips. and we are suggesting him simple chips only.

I think it was a valid question, it is assumed, judging by the replies,
he is talking about 8051, why not Microchip?

He also states that his code needs to be written in assembler, as we all know higher level languages compile to assembly code. He mentions that he currently uses 'C', assumptions again are made here, he wants to continue using 'C'

If it was a microchip I would recommend there MPlab which is dedicated to their own chips.
 
Last edited:

I think it was a valid question, it is assumed, judging by the replies,
he is talking about 8051, why not Microchip?

If it was a microchip I would recommend there MPlab which is dedicated to their own chips.

Dont you think while learning it is always good to use some generic chips which are easy rather than working on some custom chips. working on generic stuff gives more exposure.
 

In my view, Assuming a Controller is erroneous. In Our time 20 years ago we used 8085 for general purpose design :wink: . as it was taught in our universities. then from magazines we experimented with 6502(elektor & EFY).
then in 90s I saw 8051/8031/8052/80c535 based boards published in Elektor India. Now there are many alternatives like TI's MSP430 which is very chip in the range of 89cxxx.

So target Controller is a valid question. Regarding learning, best to start with is use your PC's procesor for assembly and C learning.
One may refer Paul Carter's PC Assembly Language book available for free.
For C Programming you can refer my Tutorial or Compendium it is some what old now but it contains C programming with Assembly linkage too and it is free.

Hope this helps for C and Assembly.

Ashok.
 

What chips are you planning to use? It is not mentioned anywhere, and it would help in assisting you.

What is your target chip, I wrote asm code using pen and paper back in the day; be specific if you want to know about the best software tools.
 

In my view, Assuming a Controller is erroneous.

So target Controller is a valid question.

Thank you, that is exactly what I was trying to explain. If you make assumptions about the request, the requestor may be getting the wrong information back.


Regarding learning, best to start with is use your PC's procesor for assembly and C learning.
One may refer Paul Carter's PC Assembly Language book available for free.
For C Programming you can refer my Tutorial or Compendium it is some what old now but it contains C programming with Assembly linkage too and it is free.

Ashok.

I have just downloaded your book, as I intend to look at 'C'. I currently use the assembler for Microchip, and Proton Pic Basic, but I am looking at exploring 'C' to see if it will speed up development time.

I can also see the advantage of 'C', as it is less chip specific.

Thx
John.
 

what ever it is matter
assembly is most optimize language
if you are beginner forget other high level language, go ahead with assembly
one day you will feel that you are in good stranded then change to high level language
 

what ever it is matter
assembly is most optimize language

Agreed but if you can write in Binary it is most efficient. Here The point is that You have to sacrifice some thing and get something.
Assembly language is difficult and hard to maintain but MIGHT give optimised code but The compilers are now a days are more smarter. For a reference see comp.lang.c news group discussion. The optimization issue is a common topic there.
if you are beginner forget other high level language, go ahead with assembly
one day you will feel that you are in good stranded then change to high level language

I strongly disagree with this. If it is so then then there would not be any HLL now a days. Every body should be using Assembly.

I agree the fact that Assembly language is required to understand and work closely to HW and help one to write Low-Level Code( boot sector, atomic operations register manipulations etc...)
 

what ever it is matter
assembly is most optimize language
if you are beginner forget other high level language, go ahead with assembly
one day you will feel that you are in good stranded then change to high level language

I can optimise the C code as efficient as as small as assembly...

You just need to apply brain properly... if you really follow the strict coding standards instead of writing annanymous code, the result is achievable...
 

I can optimise the C code as efficient as as small as assembly...

You just need to apply brain properly... if you really follow the strict coding standards instead of writing annanymous code, the result is achievable...

both points are agreed
but I replied for the beginner
should not think about your knowledge
see all chips, data sheet most of them explained in low level language
how ever beginner should start with low level
That is the way understand the inside of micro controller


as a game, shall we just right LED driving program with Assembly and Micro C
and compare HEX file, realty big different byte size
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top