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.

Length of LCALL instruction in 8051?

Status
Not open for further replies.

nikhildascl

Full Member level 3
Joined
Apr 15, 2012
Messages
150
Helped
15
Reputation
30
Reaction score
14
Trophy points
1,318
Location
Kerala, India
Activity points
2,115
What is the maximum length of LCALL instruction. I faced a problem while coding with LCALL.
 

nikhildascl

Full Member level 3
Joined
Apr 15, 2012
Messages
150
Helped
15
Reputation
30
Reaction score
14
Trophy points
1,318
Location
Kerala, India
Activity points
2,115
But I cannot understand the problem... When I called a Label lying on the 474th line from 19th line... It is not working. Please help..
 

js

Full Member level 5
Joined
Oct 9, 2005
Messages
265
Helped
38
Reputation
76
Reaction score
36
Trophy points
1,308
Activity points
2,662
Without your code is impossible to help you... Lcall have 16bit space and must work!
At end of your subroutine have you ret statement? ...and enough stack RAM?
 

nikhildascl

Full Member level 3
Joined
Apr 15, 2012
Messages
150
Helped
15
Reputation
30
Reaction score
14
Trophy points
1,318
Location
Kerala, India
Activity points
2,115
Sorry my code is little big. I am using AT89S52. Will it cause any problem with stack pointer?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top