[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

MIPS Assembly Language

Posted on 2012-09-03
1
Medium Priority
?
871 Views
Last Modified: 2012-09-13
I am using Mars for my program.

1) How can I define WORD1 as word with no initial value?
2) How can I store a value into WORD1
3) How can I define the temp registers and then clear them?

Thanks!
0
Comment
Question by:pauledwardian
1 Comment
 
LVL 26

Accepted Solution

by:
arober11 earned 2000 total points
ID: 38362138
See:  http://logos.cs.uic.edu/366/notes/mips%20quick%20tutorial.htm  e.g.

               .data 
  word1:	.word    0
		.text
__start:
	li	$t1, 12345	# set temp reg $t1 to 12345   ("load immediate")
	sw	$t1, word1	# store contents of register $t1 into RAM:  word1 = $t1
	li	$t1, 0              # Set  $t1  to: 0   
	done

Open in new window

0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question