We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi i m new to keil i m getting an error while running the following program
ORG 00H MOV R0,#20H MOV A,#00H ADD A,RO END
there is no error while building and linking n on debugging while i get an error at run time error :65 access violation at 0x0005 plz help me out wat to do i hav read ur error 65 document but i am unable to get wat to do plz tell me whole path n wat to do
But Why is it required? Does that mean that there is an error in the main program? If i add a debug.ini file with the contents
map c:0X0000 c:0XFFFF execute read
its also not working..
Yes, there is a bug in the program. It is considered an error to continue running past the end of a road, and it is considered an error to not inform the processor what it should do after finishing your request.
It is an error of omission - you have omitted to tell the processor what to do next after the final line in your program!
"its also not working"
In what way, exactly, is it "not working"?
What do you expect that it should do? What does it actually do? Have you thought about what could account for the difference?
Thank you sir for ur valuable assistance ... But plz clarify me that whats the use of end directive at the last line of program.I have read that it indicates end of my source code .Then why should i tell the processor to do something after my program.Whats the purpose of END directive then. Also while building,linking n debugging it doestnt show any error . If i write this program
ORG MOV R5,#25H MOV R7,#34H MOV A,#00H ADD A,R5 ADD A,R7 END
it give message error 65 :access violation at C:0x0008:no execute/read permission so whether i write any program it give access violation at the address after my last statement of program(see disassembly window). so plz tell me how to get rid of this problem. plz tell which textbook i should refer .and if u have a link for a ebook available on net or a pdf file plz mail me on my I.D. i will be highly obliged to u all.
END tells the Assembler program that that is the end of code. The CPU keeps going. On a real chip it will "Run Away". You simulator has an issue with this.
YOU control everything in ASM. You must add the code to stop this. Like SJMP $
When you see an old film on TV and get to the "The End" part, that just informs you that the film has ended - your life will not end. If you don't turn off the TV, you will get whatever else that is following - a program or the end of transmission.
When you get to a 'Road ends here' sign, that sign will not make the car stop. It is up to you to stop the car.
The assembler only cares about syntax. It is up to you to make sure that the program is valid and makes sense.
Thank you Sir... Plz can u tell me where i can get uncorrupted version of Arm evaluation software. I downloaded it from keil.com but when i install and open a project it display message missing tools.ini file its has to be closed... and window closes off.. so u said that arm controller will take care of this problem so plz tell me the link where i can get uncorrrupted version...... plz help me out