Karthikeyan.K
Newbie level 4
- Joined
- Jan 8, 2015
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 77
Hai all,
I have an issue with my keil c compiler. I've some 8051 assembly code in keil Software.
In code, if I use SJMP Instruction then the compiler shows the following error.
error A51: TARGET OUT OF RANGE
I referred the keil C Technical support page hence I found one remedy. But the explanation they provide is somewhat tough to me.
They said that the location we specify to jump can not be reached by this instruction below.
JNZ label
Instead, we can use this Instruction.
JZ Hlabel
JMP label
Hlabel:
Keil C Technical Support Page for reference: https://www.keil.com/support/docs/3026.htm
So what they are try to say with this code?
And how can I relate this code with SJMP?
Please anybody explain. Thanks.
I have an issue with my keil c compiler. I've some 8051 assembly code in keil Software.
In code, if I use SJMP Instruction then the compiler shows the following error.
error A51: TARGET OUT OF RANGE
I referred the keil C Technical support page hence I found one remedy. But the explanation they provide is somewhat tough to me.
They said that the location we specify to jump can not be reached by this instruction below.
JNZ label
Instead, we can use this Instruction.
JZ Hlabel
JMP label
Hlabel:
Keil C Technical Support Page for reference: https://www.keil.com/support/docs/3026.htm
So what they are try to say with this code?
And how can I relate this code with SJMP?
Please anybody explain. Thanks.