File: ln2.apoo

package info (click to toggle)
apoo 2.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 444 kB
  • ctags: 264
  • sloc: python: 1,954; perl: 67; makefile: 56; sh: 4
file content (23 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
#	Example: adds 3,4 and 5 using indirect loading
#	R5 points to the first value
#
ini:    const   3
         const   4
         const   5
res:    mem     3

        loadn   ini    R5
        loadi   R5     R1
        inc     R5
        loadi   R5     R2
        inc     R5
        loadi   R5     R3
        add     R1     R2
        add     R2     R3
        store   R3     res
        halt