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.

KEIL C51. HOW TO USE INLINE ASSEMBLY?

Status
Not open for further replies.

sam_aries

Newbie level 3
Newbie level 3
Joined
Jul 11, 2006
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,313
keil inline

HELLO FRIENDS
I AM HAVING TROUBLE IN USING INLINE ASSEMBLY IN KEIL C51.
PLEASE HELP ME BY PROVIDING A SUITABLE AND COMPLETE EXAMPLE.
 

Bus Master

Full Member level 3
Full Member level 3
Joined
Dec 9, 2001
Messages
186
Helped
9
Reputation
18
Reaction score
3
Trophy points
1,298
Location
Just behind You ;-)
Activity points
1,455
keil inline assembler

You have to write your ASM code inside these Preprocessor directives:

#pragma asm

.
.
. Youe ASM code here
.
.

#pragma endasm

Also, you will find a complete example in the knowledge base section at their website.

Hope this helps,
 

the tran

Member level 1
Member level 1
Joined
Dec 4, 2003
Messages
38
Helped
4
Reputation
8
Reaction score
0
Trophy points
1,286
Activity points
337
inline assembly in keil

I think you also need to include src derective in you source code otherwise compiler will ignore assembly code.
 

cybersan2002

Junior Member level 3
Junior Member level 3
Joined
Jul 25, 2005
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,439
keil c inline assembly

I have used inline assembly in C program,
also included #pragma SRC line
But still I am getting linker error.
I also enabled some options in Project window
as suggested in keil site articles.
But no use.
Plz help me on this.
Thank You.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top