25.12.2012 Views

MIPS and SPIM tutorial

MIPS and SPIM tutorial

MIPS and SPIM tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

array.s<br />

ARRAY is a label, i.e,<br />

the address to the<br />

first number.<br />

.data<br />

ARRAY: .word 1, 1, 2, 3, 5, 8, 13, 21, 34, 55<br />

10 numbers stored in<br />

sequence in the data<br />

segments – an array<br />

of numbers.<br />

Each number is a<br />

word – i.e, four bytes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!