.global _start _start: mova tblm,r0 /* Get table address */ mov r0,r1 mova tbln,r0 /* Get table address */ clrmac /* MAC register initialization */ mac.w @r0+,@r1+ /* mach 0000_0000 macl 0014_b11c */ mac.w @r0+,@r1+ /* mach macl */ mac.w @r0+,@r1+ /* mach macl */ mac.w @r0+,@r1+ /* mach macl */ sts macl,r0 /* Get result in R0 */ .align 2 tblm: .word 0x1234 .word 0xabcd .word 0x5678 .word 0xef01 tbln: .word 0x0123 .word 0xabcd .word 0x4567 .word 0xdef0