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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

Assembly language programming using PCSpim

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
dmbfan4
Asked:
dmbfan4
1 Solution
 
bcladdCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now