P Parth86 Member Apr 25, 2014 #1 I am beginner for arm I just want to learn assembly for arm I have written code Code: Area example , code readonly entry start mov R0 #5 mov R1#3 add R0, R0,R1 stop B stop End I am seeing 7 error massage assembling lcd.asm... lcd.asm(1): error A9: SYNTAX ERROR lcd.asm(2): error A9: SYNTAX ERROR lcd.asm(3): error A9: SYNTAX ERROR lcd.asm(4): error A9: SYNTAX ERROR lcd.asm(5): error A9: SYNTAX ERROR lcd.asm(6): error A38: NUMBER OF OPERANDS DOES NOT MATCH INSTRUCTION lcd.asm(7): error A9: SYNTAX ERROR lcd.asm - 7 Error(s), 0 Warning(s).
I am beginner for arm I just want to learn assembly for arm I have written code Code: Area example , code readonly entry start mov R0 #5 mov R1#3 add R0, R0,R1 stop B stop End I am seeing 7 error massage assembling lcd.asm... lcd.asm(1): error A9: SYNTAX ERROR lcd.asm(2): error A9: SYNTAX ERROR lcd.asm(3): error A9: SYNTAX ERROR lcd.asm(4): error A9: SYNTAX ERROR lcd.asm(5): error A9: SYNTAX ERROR lcd.asm(6): error A38: NUMBER OF OPERANDS DOES NOT MATCH INSTRUCTION lcd.asm(7): error A9: SYNTAX ERROR lcd.asm - 7 Error(s), 0 Warning(s).
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Apr 26, 2014 #2 For you reference... http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0068b/index.html I don't use ARM but.. Code: Area example , code readonly entry start mov R0, #5 ; <- missing comma mov R1,#3 ; <- missing comma add R0, R0,R1 stop B stop ; I don't recognise this... End
For you reference... http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0068b/index.html I don't use ARM but.. Code: Area example , code readonly entry start mov R0, #5 ; <- missing comma mov R1,#3 ; <- missing comma add R0, R0,R1 stop B stop ; I don't recognise this... End
P Parth86 Member Apr 27, 2014 #5 AREA EXAMPLE -area directive can be used to specify name section of program code and data which type of example we can write? ENTRY- first instruction to be executed CODE- contain Instruction READONLY- code in read only memory B - branch instruction
AREA EXAMPLE -area directive can be used to specify name section of program code and data which type of example we can write? ENTRY- first instruction to be executed CODE- contain Instruction READONLY- code in read only memory B - branch instruction