Solved

Assembly language programming using PCSpim

Posted on 2003-11-16
2
250 Views
Last Modified: 2008-02-26
I need to mplement a muxtex that uses a separate FIFO to transfer processes that are waiting to get into the critical section from the run queue. I need to write the code in assembly language using PCSpim.  I am not very familar using this language.  Can you Please help.
0
Comment
Question by:dmbfan4
2 Comments
 
LVL 11

Accepted Solution

by:
bcladd earned 430 total points
ID: 9760518
One assumes that you are using a good architecture or operating systems text book which describes the MIPS R2000 assembly language. If you're not I can suggest on (Hennesy and Patterson OR Patterson and Hennesy (they wrote two architecture books together, one undergraduate and one graduate; I like the graduate text better though it is not quite as nice for teaching assembly language). If so I urge you to read the book and look at the code you are going to fit your code into.

This is a homework assignment and it is EE policy that experts cannot write your homework for you and you cannot ask for that. I would be happy to answer specific questions (though my Hennesy and Patterson is 1000 miles away right now so I might struggle with specific syntax). It is obvious that this is a piece of a larger operating system; read and understand the code where your mutex must fit. Understand what Spim instructions are atomic and how a critical section is implemented.

Good luck, -bcl
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

760 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

21 Experts available now in Live!

Get 1:1 Help Now