Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Intro to Computer Architecture Spring, 2017 Due: March 8 (midnight) Write a program to implement doubly-linked lists of integers in MIPS assembly language Your implementation

image text in transcribed

Intro to Computer Architecture Spring, 2017 Due: March 8 (midnight) Write a program to implement doubly-linked lists of integers in MIPS assembly language Your implementation will include functions to insert an integer at the end of a given linked list display the contents of a list in forward order display the contents of a list in reverse order A "list" should be stored as a struct consisting of two addresses: a pointer to the head of the list and a pointer to the tail of the list. You can create an empty list in your data section with the directive list: word 0, 0 A nodes is a struct consisting of three words: a data item, a prior pointer, and a next pointer. Use a value of 0 to indicate a null pointer. Allocate space for list nodes as follows: Each node is 12 bytes (4 bytes each for data, prior, next). Use the spark system call (v0 = 9) to allocate space for each node. a0 is a parameter to spark containing the number of bytes requested. the address of the requested space is returned in v0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions

Question

=+ How well do you think you could do your job?

Answered: 1 week ago