MIPS Assembly Language

Posted on 2012-09-03
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?

Question by:pauledwardian
    1 Comment
    LVL 26

    Accepted Solution

    See:  e.g.

      word1:	.word    0
    	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   

    Open in new window


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    The Rasberry PI is a low cost piece of hardware that you can have a lot of fun with through experimenting and building/working on projects like media players, running a low cost computer, build data loggers etc. - see:
    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…
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now