kartikkg
Newbie level 5
i am a novice at keil , i am learning arm 7 assembly level program , i want to know hot to read and write into memory ,either rom or ram
AREA ARMex, CODE, READONLY
; Name this block of code ARMex
ENTRY ; Mark first instruction to execute
start
MOV R0,#0X00000000
MOV R1,#0X00000007
LDR R9,[R0]
STR R9,[R1]
END
stop
MOV r0, #0x18 ; angel_SWIreason_ReportException
LDR r1, =0x20026 ; ADP_Stopped_ApplicationExit
SVC #0x123456 ; ARM semihosting (formerly SWI)
END ; Mark end of file
This is my program , but i am unable to edit the memory regions 0x00000000
and this is *** error 65: access violation at 0x00000007 : no 'write' permission
for 0x00000007
sorry for ignorance
AREA ARMex, CODE, READONLY
; Name this block of code ARMex
ENTRY ; Mark first instruction to execute
start
MOV R0,#0X00000000
MOV R1,#0X00000007
LDR R9,[R0]
STR R9,[R1]
END
stop
MOV r0, #0x18 ; angel_SWIreason_ReportException
LDR r1, =0x20026 ; ADP_Stopped_ApplicationExit
SVC #0x123456 ; ARM semihosting (formerly SWI)
END ; Mark end of file
This is my program , but i am unable to edit the memory regions 0x00000000
and this is *** error 65: access violation at 0x00000007 : no 'write' permission
for 0x00000007
sorry for ignorance