1# Instructions including a register list (opcode is represented as a mask). 2 .data 3foodata: .word 42 4 .text 5footext: 6 7 .global push 8push: 9push ra, {r3, r4} 10push r2 11 12 .global pushx 13pushx: 14pushx sp, {r0, r1, r2, r3, r4, r5, r6, r7} 15pushx r6, {hi, lo} 16 17 .global pop 18pop: 19pop r0, {r10} 20pop r2 21 22 .global popx 23popx: 24popx sp, {r0, r1, r3, r4, r5, r6, r7} 25popx r7, {lo, hi} 26 27 .global popret 28popret: 29popret r13, {ra, r1} 30popret ra 31 32 .global loadm 33loadm: 34loadm r0, {r1, r6} 35 36 .global loadma 37loadma: 38loadma r13, {u12, u4, u2} 39 40 .global storm 41storm: 42storm r15, {ra} 43 44 .global storma 45storma: 46storma r3, {u0, u2} 47 48