plaes someone help me for writing code in assembly language in keil m4.20 . my compiler is realviw 4.13. Before i used the keil mv3 and carm compiler. my question is this how can i write start of a program in keil mv3 it is
PUBLIC INI,CODE,READWRITE PUBLIC ?C?INIT ?C?INIT MOV R0,#00H MOV R1,#01H ADD R2,R1,R0 NOP END
this successfully compiled in keil mv3. how can i write these assembly programs in keil 4 using realview. I used the example from help manual that is
AREA ARMex, CODE, READONLY ; Name this block of code ARMex ENTRY ; Mark first instruction to execute start MOV r0, #10 ; Set up parameters MOV r1, #3 ADD r0, r0, r1 ; r0 = r0 + r1 stop MOV r0, #0x18 ; angel_SWIreason_ReportException LDR r1, =0x20026 ; ADP_Stopped_ApplicationExit SVC #0x123456 ; ARM semihosting (formerly SWI) END ; Mark end of file
when compiling this it shows this error assembling TEST.S... TEST.S(1): error: A1163E: Unknown opcode ARMex, , expecting opcode or Macro TEST.S(3): error: A1105E: Area directive missing TEST.S(3): warning: A1088W: Faking declaration of area AREA |$$$$$$$| TEST.S - 2 Error(s), 1 Warning(s). please help! or suggest me how to study these from some training manual .