Contain a function to print the matrix

Assignment Help Basic Computer Science
Reference no: EM13934748

Translate your C program transpose.c from Assignment 1, Part 1 (as specified in there) into an equivalent rPeANUt assembly program transpose.s. You may alternately use the sample solution instead.

For full marks, your program should contain a function to print the matrix (any local variables should also be implemented n the stack). Your program must include the given simpleIO.s library and use the writeInt() function to print numbers, and writeStr() to print strings. It must also use the function readUInt() to read n. Givenchar *s; int x; unsigned int n; these have the following usage: In the program transBuf.s, write an rPeANUt program to write a pattern into the frame buffer, and then transpose the square part of it (160 by 160 portion of it). Note that it must perform an actual transposition of a 160 by 160 bit array. The pattern should set every word this square part to a value that is neither 0 or -1, and it should not be symmetric (so that it is obvious that the transposed image is different from the original).
Up to 2 bonus marks may be awarded if the pattern is considered particularly `interesting'.
Coding Style and Marking: as for Part 1. It should be possible to document (almost) all of your code with valid C code, and this will be expected.

Hints: You can view the square part of the frame buffer as a 160 by 5 word integer array, where element (i,j) is at offset i*6+j. I suggest that you partition the frame buffer into columns of 32 words; each such chunk may now be transposed into another chunk (or into itself, if it corresponds to the diagonal of the 160 by 160 bit array). It will probably be necessary to have a temporary array of 32 words to form the transpose of a chunk; you may find it useful have a function which can do this. I recommend that you actually write and debug your algorithm in C (transBuf.c) first, beginning from a modified version of transpose2.c. It does the bitwise transpose of a 160 by 5 integer array into itself. Of course you will not be able to use the frame buffer and to `see' the result you will have to resort to using -p x.

Reference no: EM13934748

Questions Cloud

Problem involving option buttons and radio buttons. : The Solution cannot be opened with Visual Basic 2010.
Explain a specific operational management issue : Select, critically analyse, and explain a specific operational management issue or problem within either your organisation or the organisation in the scenario provided, and present an improvement plan.
Disadvantage of the regular payback method : Which of the following statements is NOT a disadvantage of the regular payback method?
Cash flows used to analyze a proposed project : Which of the following should be considered when a company estimates the cash flows used to analyze a proposed project?
Contain a function to print the matrix : Translate your C program transpose.c from Assignment 1, Part 1 (as specified in there) into an equivalent rPeANUt assembly program transpose.s. You may alternately use the sample solution instead.
Discuss whether the multi-national corporation : Discuss whether the multi-national corporation (MNC) will risk be over-hedged its position to the extent affect the company's financial position. Describe fully .
Behavioural management strategy : For this assessment you will be required to access information about TIME OUT as a behavioural management strategy, The Early Childhood Australia Code of Ethics, and the ACECQA National Quality Standards.
Explain processes, anaerobic respiration is ethanol produced : Explain in which processes, anaerobic and aerobic respiration is ethanol produced and indicate what fact or evidence you know that substantiates this.
Prepare an income statement for fiscal : Prepare an income statement for fiscal 2011 Ignore income taxes.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Give the boolean equation for the problem

Develop a truth table that captures the desired circuit behavior of the problem and give the Boolean equation for the problem.

  Discuss the issues that managing and implementing

Discuss the issues that managing and implementing the technology architecture you would have and how you would overcome these challenges. Be sure to discuss at least three challenges.

  Users complain about slow network access

Business uses all hubs. Users complain about slow network access. Write a business case memo to the owner justifying the purchase of switches to replace the hubs. 2pages

  The purpose of cryptography and take a position

Explain, in your own words, the purpose of cryptography and take a position on whether or not you believe encryption is sufficiently utilized in organizations today. Provide a rationale with your response. Describe the differences between symmetric a..

  Design process

You have recently started your own software design company. You discover that your local DMV is looking to build a system that will allow receptionists to check customers in quickly. They would like for the system to allow customers to self-check-in ..

  Explaining origins or genesis of wireless networking

Explain origins/genesis of wireless networking.

  Provide a description of the algorithm in pseudocode

You are required to create a detailed analysis for each of the following array-based sorting algorithms.

  Research options for improving the current use of tcp/ip

Research options for improving the current use of TCP/IP and recommend new software and equipment that's available.

  Wanna farming autobot for a mobile game

Wanna Farming Autobot for a mobile game

  What influence the concept of pervasive computing

What you believe the eventually influence will be of concept of "pervasive computing" or"location based services" will be on society.

  What term was a major issue during the process

What term was a major issue during the process of continuously dubbing media? Digitization cured this issue.

  About use the boost methodology

You are required to logically extend the functionality of the Maze Game introduced during lectures, via the modification of the code base as well as documentation and implementation of various user stories.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd