about summary refs log tree commit diff stats
path: root/example/samples/msp430.S
blob: 5f4beb9111a75e067e59c5e5751dd4f99822fa20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
main:
    mov.w      0x10, R10
    mov.w      0x0, R11
    call       func
loop:
    add.w      1, R11
    sub.w      1, R10
    jnz        loop
    mov.w      @SP+, PC

func:
    add.w      1, R9
    mov.w      @SP+, PC