200k views
0 votes
The address space 0x0000-0x3FF is assigned to I/O peripherals of a given HCS12 chip. How many K bytes is this? (Points : 2) 2K

3K
8K
1K

1 Answer

2 votes

Answer:

D. 1K

Step-by-step explanation:

The address space 0x0000-0x3FF is of 1KB(One Kilo Byte) since 0x3ff is equal to 1023. therefore 1023=1 KB.

bitwise 0x3ff zeros out the top bits of the number such that the result is always between 0 and 1023. It is essentially the same thing as modulo( num,1024) for positive values of num.

Hence the answer is D 1K

User Liam Haworth
by
6.8k points