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
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.
 

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,
 
inline assembly in keil

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

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top