Arrays in Sparc assembly language

Setting up a byte array

To create a byte array, use the .byte directive in your data segment:
poly1:   .byte  10, 9, 8, 7, 6,...
poly2:   .byte  10, 9, 8, 7, 6,...
result:  .byte  0, 0, 0, 0, 0, 0,...
To read values from an array, use the ldub instruction (not ldb like I originally said---that instruction does not exist). Use indexed or base + index addressing. To write values to an array, use the stb instruction.