Question

In: Computer Science

1. what mask in register F would cause the Simple Assembler instruction [and RA, RA, RF]...

1. what mask in register F would cause the Simple Assembler instruction [and RA, RA, RF] to put 0 in the most significant bit of register A without disturbing the other bits?

2. Suppose registers E and F contained AA and CC, respectively. What bit pattern would be in register D after executing the Simple Assembler instruction [xor RD,RE,RF]?

3. Suppose registers E and F contained AA and CC, respectively. What bit pattern would be in register D after executing the Simple Assembler instruction [and RD,RE,RF]?

4. If registers 0 and 1 contain the patterns B5 and F0, respectively, what will be in register 1 after executing the Simple Assembler instruction [move R0,R1]?

Solutions

Expert Solution

Q1.

The assembler instruction [and RA, RA, RF] causes the result of the and operation between the contents of registers A and F to be stored ar Register A. Again, we know that the result of and operation of any 2 bits is 0 if either or both of the bits are 0. Thus, to put 0 in the MSB or most significant bit of register A without disturbing the other bits, most simply the MSB of register F should be made 0.

Q2.

For the Simple Assembler instruction [xor RD,RE,RF] the result of the xor of the contents of registers E and F will be stored at register D. Now, since the xor of hex AA & CC, which are contents of registers E & F respectively, is hex 66, the content of register D will be hex 66 after the instruction.

Q3.

For the Simple Assembler instruction [and RD,RE,RF] the result of the and of the contents of registers E and F will be stored at register D. Now, since the xor of hex AA & CC is hex 66,which are contents of registers E & F respectively, the content of register D will be hex 88 after the instruction.

Q3.

For the Simple Assembler instruction [and RD,RE,RF] the result of the and of the contents of registers E and F will be stored at register D. Now, since the xor of hex AA & CC is hex 66,which are contents of registers E & F respectively, the content of register D will be hex 88 after the instruction.

Q4.

The Simple Assembler instruction [move R0,R1] moves the content of register 1 to register 0. Hence, if registers 0 and 1 contain the patterns B5 and F0, respectively, the content in register 1 after executing will be blank as the content F0 of register 1 has been moved to register 0.


Related Solutions

True and False 1. The instruction register stores machine code for the instruction being executed. 2....
True and False 1. The instruction register stores machine code for the instruction being executed. 2. Before a digital computer may execute an instruction, the instruction code must be fetched from memory. 3. A pointer is a binary code for data in the arithmetic logic unit. 4. Von Neumann computer architecture stores data and instruction codes in the same memory. 5. Complex instruction set computers have instructions with greater speed than those in reduced instruction set computers.
1. Convert the following pseudo code routine into MIPS assembler language: - Set register $t0 =...
1. Convert the following pseudo code routine into MIPS assembler language: - Set register $t0 = 1 - In four separate instructions add 2, then 3, then 4, then 5 into register $t0 $t0 = $t0 + 2 + 3 + 4 + 5 - Copy the result from register $t0 into register $t1 2. Convert the following into MIPS assembler language: - Set register $t0 = 0 - Initialize the register $t1 = 10 - Use register $t2 as...
What is the Opcode? What is the Operand? What is the value in Register 5 after the instruction is executed?
What is the Opcode? What is the Operand? What is the value in Register 5 after the instruction is executed?
Instruction: What is Unemployment Rate and what are the factors that cause the UR to increase...
Instruction: What is Unemployment Rate and what are the factors that cause the UR to increase or decrease? Do your own research. Write one page to define the Unemployment Rate and explain the factors affecting the UR. (Mention your reference at the end)
Nasal cannula Simple face mask Non-rebreather mask *here's a list of what I need below to...
Nasal cannula Simple face mask Non-rebreather mask *here's a list of what I need below to go with listed above. nursing intervention (pre, intra, post) client education nursing interventions indications outcomes/evaluation potential complications
3.21 [10] <§3.5> If the bit pattern 0×0C000000 is placed into the Instruction Register, what MIPS...
3.21 [10] <§3.5> If the bit pattern 0×0C000000 is placed into the Instruction Register, what MIPS instruction will be executed? 3.22 [10] <§3.5> What decimal number does the bit pattern 0×0C000000 represent if it is a floating point number? Use the IEEE 754 standard. Given the following 32-bit binary sequences representing single precision IEEE 754 floating point numbers: a = 0100 0000 1101 1000 0000 0000 0000 0000 b = 1011 1110 1110 0000 0000 0000 0000 0000 Perform the...
1. What is Rf value? List three factors that affect the Rf value.
1. What is Rf value? List three factors that affect the Rf value.
1)Explain, in writing, how you would develop and maintain an asset register. What would be your...
1)Explain, in writing, how you would develop and maintain an asset register. What would be your source information and what would be included in the register? (150–180 words) 2)Explain in 150 words what a general journal entry is and why journal entries are necessary. 3)Explain in 150 words double?entry principles and how and why they are used. 4)Explain a general ledger system in 150 words.
1. Explain the difference between an Assembler and a Compiler. 2. What is the version of...
1. Explain the difference between an Assembler and a Compiler. 2. What is the version of Visual Basic used today? Is this the only Basic compiler that exists?
1. Identify factors that would cause consumption spending to increase. What effect would that have on...
1. Identify factors that would cause consumption spending to increase. What effect would that have on aggregate demand? 2.. Explain the concept of autonomous consumption. Note :- Please avoid Plagiarism
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT