a)
There are 3 bits for segement, so the segment numbers can range from 0 (000) to 7 (111).
So, a maximum of 8 segments are possible.
b)
0100 1001 1101 1110
Here, the highest 3 bits denote segment number, equal to 010, equivalent to decimal 2. Also, the offset is binary 0 1001 1101 1110.
As seen from segment table, segment 2 is present in memory, and its base address is binary 0010 0000 1000 0011.
So, the physical address is given by
= (Base address) + (Offset)
= 0010 0000 1000 0011 + 0 1001 1101 1110
= Binary 0010 1010 0110 0001
= Decimal 10849
c)
When converting logical addresses to physical addresses, we can certainly get addresses which are present in segments that are not present/loaded for the particular process in hand.
This results in segmentation faults, and is an effective mechanism to prevent a process from unauthorized access of addresses (of the same/different processes).
Base no bit 0 0 Q-2 (25p): Assume that logical addresses are 16-bit long: 3 bits...
DO bit 0 1 Q-2 (25p): Assume that logical addresses are 16-bit long: 3 bits for segment no and 13 bits for offset. Segment table of the currently running process is given below: a) (5) How many segments can this Segment Present Modify process have at maximum? Length bit Base 0 0 0 0100 0111 0000 0100 0000 1000 0100 b) (15) Convert the following logical 1 1 0100 0100 0001 0010 0010 1100 1000 address to physical (real) address...
Generate the equivalent Sim68 assembly program for the following machine code assuming it originates at address dollar 0000: 1001 0000 0100 0000 0011 0000 0100 0000 0011 0010 0010 1000 0000 0000 0000 1100 0110 0111 0000 0110 0110 1101 1111 1000 1101 0000 0100 0001 0110 0000 1111 0110 0100 1110 0100 0000 0000 0000 0000 0000 0001 0110 1111 0000 1111 1111 1111 1111 1000 0000 0000 0000 0000 0000 0000 0001
Arduino.
DEC HEX BIN(4-bits) Introducing ARDUINO 0 0 0000 1 1 0001 2 2 0010 3 3 0011 4 4 0100 5 5 0101 How many 1/0 of Port-D? How many usable 1/0 of Port-D, if Serial-Communication is in-used? What is the Arduino's pin assignment of ATMEL's PC5, PB3, & PD1*? What is the ATMEL's pin assignment of Arduino's D13*, D1, & D19? To complete the table about Number System Conversion (shown your step) 6 6 0110 7 7 0111...
7. On a machine, an instruction is always 16 bits long, and the re are 16 registers. (1) Briefly explain the idea of expanding opcode. (5%) (2) Given this scheme of expanding opcode, identify how many three-address instructions, two-address instructions, one-address instructions, and zero- address instructions are supported. (10%) O 0000 xxxx yyyy zzzz 0001 xxxX yyyy ZZZZ 0010 xxxx yyyy zzZZZ 92 3-address SE instructions 0111 xxxx yyyy zzzz 1000 0000 yyyy zzZz 1000 0001 yyyy zzzz 1000 0010...
We have learned a famous shift cipher called Caesar Cipher. Now if we are given a plain test: THE ART OF WARAnd key = 3 (a shift by 3 letters), please give the ciphertext Given an 8 bit block P = 10101111 and a key K = 01101011, please give the result of bitwise XOR between P and K Please give the left 2 shift of the 8 bit text 01100101 Use the given a permutation table 23614857 to define...
Convert each of the following 32 IEEE 754 single precision bit patterns to its corresponding decimal value (the bits are separated into groups of 4 to make interpretation easier). Show all of your work and include a few comments as to what you are doing at each step. 1100 0100 1011 1010 0100 1000 0000 0000 a. b. 0100 0101 1110 0010 0110 1101 0000 0000
Convert each of the following 32 IEEE 754 single precision bit patterns to its...
Please show work!
2. Now, give it a try by converting the binary number 01110110 to decimal by filling in the same table in step 1 r of 2 Pov 128 64 32 16 Cumulative Amount 4. Now, you give it a try by converting the decimal number 131 to binary by filling in the table Power of 2 128 32 16 Bit Amount Remaining 6. Use the binary to hexadecimal table to convert the binary number 01101111 to hexadecimal...
We want to compute the Checksum of the following four 16-bit words. 1000 0110 0101 1110 1000 1100 0110 1000 0111 1001 0010 0010 1000 1001 1011 1101 Explain the algorithm and implement the checksum computation in a programming language (e.g., C, C++ or Python) with the above input header.
I need the following problems worked out (show work). Thee answers are provided, I just need the work explained briefly for each one. 4 - What is the decimal representation of each of the following unsigned binary integers? a. 00110101 (53) b. 10010110 (150) c. 11001100 (204) 6 - What is the sum of each pair of binary numbers? a. 10101111 + 11011011 (110001010) b. 10010111 + 11111111 (110010110) c. 01110101 + 10101100 (100100001) 8 - How many bits are...
Assuming the square 2D memory organization shown in
Figure 5.7 below, what are the dimensions of a
memory containing 64 (26) bytes of storage? How large
would the MAR be? How many bits are sent to the row and
column decoders? How many output lines would these
decoders have?
FIGURE 5.7 Column Column Column Column 2 (10) Address (00) 0001 0010 0011 Row O (00) 0100 0110 0111 Row 1 (01) Row selection lines 1000 1001 1010 1011 Row 2...