Joystick..................:-)
Answer:
For 32 bits Instruction Format:
OPCODE DR SR1 SR2 Unused bits
a) Minimum number of bits required to represent the OPCODE = 3 bits
There are 8 opcodes. Patterns required for these opcodes must be unique. For this purpose, take log base 2 of 8 and then ceil the result.
Ceil (log2 (8)) = 3
b) Minimum number of bits For Destination Register(DR) = 4 bits
There are 10 registers. For unique register values take log base 2 of 10 and then ceil the value. 4 bits are required for each register. Hence, DR, SR1 and SR2 all require 12 bits in all.
Ceil (log2 (10)) = 4
c) Maximum number of UNUSED bits in Instruction encoding = 17 bits
Total number of bits used = bits used for registers + bits used for OPCODE
= 12 + 3 = 15
Total number of bits for instruction format = 32
Maximum No. of Unused bits = 32 – 15 = 17 bits
OPCODE DR SR1 SR2 Unused bits
3 bits 4 bits 4 bits 4 bits 17 bits
Answer:
Verbatim Identifier
Explanation:
- Verbatim Identifier contains @ symbol as a prefix by which enables you to use reserved words of a programming language as identifier. For example the keywords like int, double, goto, char, else, while, for, float etc can be used as strings or variable names if @ symbol is added before these words e.g. @char, @while, @void, @int etc.
- The compiler of a language will recognize such identifiers as verbatim identifiers and compiles them without giving an error that these are reserved words.
- Verbatim identifier is used for program that is written in other languages and those languages don't have same reserved words.
- For example: cout<<"use of verbatim identifier";<<@for; In this statement, for keyword which is used in for loop can be used as an identifier with @ in the prefix.
- The escape sequences if used with @ symbol in prefix then they are interpreted in a different way. For example in C#
string a = "\\C:\torrent\new\file";
Console.WriteLine(a);
This statement will give the following output:
\C: orrent
ewfile
This means that the \t in the start of torrent and \n in the start of new word is taken as an escape sequence and output displayed is giving tab space because of \t and prints the rest of the words in new line because of \n escape sequence.
Now lets use this with the @ symbol
string a = @"\\C:\torrent\new\file";
Console.WriteLine(a);
The output will now be:
\\C:\torrent\new\file
\t and \n are not taken as escape sequences by the compiler because of @ symbol.
Answer:
the teacher said a (dash) reads pages on website pls answer me now i have to write it now
I think it might be Heading & Border