1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

assembly code for addition ?

Discussion in 'ARM' started by Parth86, Apr 25, 2014.

  1. Parth86

    Parth86 Member

    Joined:
    Dec 25, 2011
    Messages:
    512
    Likes:
    5
    I am beginner for arm I just want to learn assembly for arm
    I have written code
    Code (text):
    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).
     
  2. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,159
    Likes:
    907
    Location:
    Rochdale UK
  3. jjw

    jjw Member

    Joined:
    Apr 16, 2012
    Messages:
    258
    Likes:
    15
    Location:
    Helsinki, Finland
    B is branch ?
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Parth86

    Parth86 Member

    Joined:
    Dec 25, 2011
    Messages:
    512
    Likes:
    5

    does anyone know good link for arm assembly sample code
     
  6. Parth86

    Parth86 Member

    Joined:
    Dec 25, 2011
    Messages:
    512
    Likes:
    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
     

Share This Page