The following is my program:
ORG 0000H LJMP MAIN ORG 0030H MAIN:MOV A,@R0 MOV B,#100 DIV AB INC R0 MOV @R0,A MOV A,#10 XCH A,B DIV AB INC R0 MOV @R0,A INC R0 MOV @R0,B END
When I debugging it,the " error 65: access violation at C:0x0042 : no 'execute/read' permission" occured.
I am a new guy for KEIL. How should I do? Please & Thanks!
Your code is flying off at the end!
Don't assume that the END directive stops execution.
"I am a new guy for KEIL. How should I do?"
Obviously, the first thing you should do when starting out with any new product is to study the manuals. All of the manuals are installed on your hard drive with the tools, and they are also available online: http://www.keil.com/support/man_c51.htm
eg, you can read about the END directive here: http://www.keil.com/support/man/docs/a51/a51_st_end.htm
You should also spend some time familiarising yourself with the other support resources available to you: http://www.keil.com/support/
In particular, see the book list here: http://www.keil.com/books/