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.

assembly code style for microcontrolers

Status
Not open for further replies.

jani baadshah

Junior Member level 1
Joined
May 27, 2010
Messages
18
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Location
pakistan
Activity points
1,373
hi
i have learned assembly lang using 8086 in masm style.
now i have written an assembly code that is correct in its logic and working,but when i tried to check it in kiel u vision(an integraed ide) to burn in atmel 8951 ic,that ide prompted me that the code is wrong.is there any other method to do so ?
 

the difference is in 'directives ' for the assemblers.

8086 masm have directives like 'SEGMENT' 'FAR' etc.

but when it comes to 8051 their directives are different.

these 8051 directives are 'assembler' package writers dependent.

if you use keil , then refer to keil assembler format.

but you can also use other assemblers like metalink , ASEM51 or as51
since you are comfortable with assembler writing.

the metalink or asem51 will generate the 'hex' file what keil also produce.

but if you use asem51 or metalink you will have highest mileage in terms of time
to learn and get the hex..

srizbf
26thjune2010
 
Each controller has its own assembly.
--
Amr
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top