After execution of your code register t0 should have

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: After execution of your code register $t0 should have value 0 if the external memory is little‐endian and 1 if it is big‐endian. Any temporary registers ($t0‐$t9) and instructions from green card can be used for this problem. Only “valid” memory locations can be used for testing purposes, e.g. those used for register spilling. (Note that, in general, assembler language is a platform dependent so such code is rarely needed) There could be various ways to do that. The main idea is to store word with test content, i.e. having hex value 0x000 0001, using stack pointer ($sp) and then check the order of how it was stored by loading byte value from the...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online