Question

5. Show the representation of the string Comets are awesome! in the memory of a MIPS based system using the NULL-terminated

1 0
Add a comment Improve this question Transcribed image text
Answer #1
Char Decimal Hexadecimal
C -> 67 -> 43
o -> 111 -> 6f
m -> 109 -> 6d
e -> 101 -> 65
t -> 116 -> 74
s -> 115 -> 73
  -> 32 -> 20
a -> 97 -> 61
r -> 114 -> 72
e -> 101 -> 65
  -> 32 -> 20
a -> 97 -> 61
w -> 119 -> 77
e -> 101 -> 65
s -> 115 -> 73
o -> 111 -> 6f
m -> 109 -> 6d
e -> 101 -> 65
! -> 33 -> 21
So, Comets are awesome! in hexadecimal is 43 6F 6D 65 74 73 20 61 72 65 20 61 77 65 73 6F 6D 65 21
and a null-terminating value of 00 is used at the end.

Answer:
--------
So, in memory in hexadecimal format it looks as
43 6F 6D 65 74 73 20 61 72 65 20 61 77 65 73 6F 6D 65 21 00
Add a comment
Know the answer?
Add Answer to:
5. Show the representation of the string "Comets are awesome!" in the memory of a MIPS...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 5. Show the machine representation for the following MIPS instruction: bgtz $9, check_val Suppose that the...

    5. Show the machine representation for the following MIPS instruction: bgtz $9, check_val Suppose that the address of the above instruction is 340 (decimal) and the address of the label check_val (which is present at some other place in the program and is not given here) is 128 (decimal), compute the offset in (a) bytes (b) words. Show clearly the binary representation for all fields which include the opcode for bgtz, one register, and the offset in words. Also, represent...

  • Question 3: Represent the following numbers in the memory using 32-bit floating-point representation, then in Hexadecimal....

    Question 3: Represent the following numbers in the memory using 32-bit floating-point representation, then in Hexadecimal. 1. (-1313.3125) 2.(0.00011011) Question 4:_Represent the following data in the memory (show your work): 1.93 // Integer : Two bytes 2.-156 //Integer: Two bytes using Two's complement Question 5: Find the real number (in decimal) which is represented in the memory using 32-bit floating-point representation as follows, please show your steps follows: JOJO AOL

  • virtual memory support into our baseline 5-stage MIPS pipeline using the TLB miss handler. Assume that...

    virtual memory support into our baseline 5-stage MIPS pipeline using the TLB miss handler. Assume that accessing the TLB does not incur an extra cycle in memory access in case of hits. Without virtual memory support (i.e. she had only a single address space for the entire system, or a physical address is same as a logical address), the average cycles per instruction (CPI) was 2 to run Program X. If the TLB misses 10 times for instructions and 20...

  • MIPS programming question Problem 1: Write a program that asks the user to input a string...

    MIPS programming question Problem 1: Write a program that asks the user to input a string (or no more than 50 characters). Your program should then output the length of the string. The string length should be determined using a separate function strlen that will accept the address of the string and return its length. For the purposes of this exercise, the length of a string will be defined as the number of non-null and non-newline characters until either the...

  • 4. (3 pts. each) Write the hexadecimal representation of each MIPS assembly instruction: (4.1) sub $s3,...

    4. (3 pts. each) Write the hexadecimal representation of each MIPS assembly instruction: (4.1) sub $s3, $t1, $s2 (4.2) bne $t3, $t4, 18 (4.3) sll $s0, $t5, 2 5. (20 pts.) Consider the following C (or java) code: else f=f+2; By storing the value of j in Ss0, write a sequence of MIPS assembly instructions that will execute these lines of code for the following two cases: (5.1) assuming that the values of f, g and h are stored in...

  • Given the following page-reference string, show the allocation of 3 frames of memory using FIFO ,...

    Given the following page-reference string, show the allocation of 3 frames of memory using FIFO , LRU and OPT. How many page faults for FIFO, LRU and OPT? 3,1,2,1,3,1,4,1,3,2,4,2,5,6,4,6,2,1,6,5

  • Given the following page reference string, count the number of page faults for a memory capacity...

    Given the following page reference string, count the number of page faults for a memory capacity of 4 frames using the CLOCK page replacement algorithm. Reference string: 0, 1, 2, 3, 0, 1, 4, 0, 1, 2, 3, 4, 5, 6, 3, 2, 1, 0. Show all work.

  • Problem 1 (5 points) Using graphical representation, show the pipeline execution of the following instructions on...

    Problem 1 (5 points) Using graphical representation, show the pipeline execution of the following instructions on the 5-stage pipeline as given in the Lecture 7. Lxx R20, 0x0100(R18) Add R20, R18, R16 Sw, R22, 0x0110(R16) cc1 CC2 Instr lwy Also answer the following questions: (1) How many cycles needed for the execution of these three instructions? (2) What is ALU doing on cycle 3, 4, 5 respectively? (3) What is the memory action in cycle 4, 5, 6 respectively?

  • (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the...

    (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the left of the decimal point and 3 to the right. a.      What is the range of the expressible numbers?    b.      What is the precision?    c.       What is the error?    ______________________________________________________________________________   (3 pts) Convert this unsigned base 2 number, 1001 10112, to each base given below   (Note: the space in the binary string is purely for visual convenience) Show your work. Using...

  • HW60.1. Using Maps Implement a public final class named wordCounter. WordCounter should provide a single static...

    HW60.1. Using Maps Implement a public final class named wordCounter. WordCounter should provide a single static method countwords, which takes a string and returns a Map from strings to Integers. Each entry in the map should have a value (Integer) representing how many times that key (String) appeared in the String that was passed to countWords. For example: MapString, Integer» counts = Wordcounter.countilords ("cs 125 is awesome"); System.out.println(counts.get("CS")); // prints 1 System.out.println(counts.get( "125")); // prints 1 System.out.println(counts.get("225")); // prints null...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT