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.
hello all,
I am trying to get my arm7tdmi.. better yet an at91sam7x256 processor to do the simplist of assembly programs.. I have the program done and it should be flawless..
write the sum of cubes from 1 to 10 to a register..
AREA cubesum, CODE, AT 0x00000000 PUBLIC ?ASM?INIT
?ASM?INIT
begin: MOV R0, #0 MOV R1, #1 next: MUL R2, R1, R1
MLA R0, R2, R1, R0
ADD R1, R1, #1
CMP R1, #0xb
BNE next END
anyway I keep getting these errors when I compile..
FirstProgram.asm(1): error: A1163E: Unknown opcode cubesum, , expecting opcode or Macro
FirstProgram.asm(2): error: A1355U: A Label was found which was in no AREA
I don't understand. shouldnt cubesum be the program name at the top? and dont you need to declare the asminit so it knows it's using assembly? This is really iritating me considering my text book doesn't explain startup files at all and has no useful information on what headers I need, and also that there is no decent support on the web (like no one has run into this before). help would be much appreciated. once I have it initialized coding is the easy part. oh and I'm using the stock startup file for that specific processor.
thanks all,
justin
as in my original post.. "oh and I'm using the stock startup file for that specific processor."