SLAU131V October 2004 – February 2020
1 * Define macro to find minimum
2
3 MIN .macro src1,src2,dst
4 CMP src1,src2
5 JL m1?
6 MOV src1,dst
7 JMP m2?
8 m1? MOV src2,dst
9 m2?
10 .endm
11
12 0000 MIN R11,R12,R13
1 0000 9B0C CMP R11,R12
1 0002 3802 JL m1?
1 0004 4B0D MOV R11,R13
1 0006 3C01 JMP m2?
1 0008 4C0D m1? MOV R12,R13
1 m2?