Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. A particular single - board computer has a video - out port. One of the ways to use the video - out port is

. A particular single-board computer has a video-out port. One of the ways
to use the video-out port is with the character buffer. While the character
matrix on the screen is 24\times 40 characters, the character buffer is mapped
to 32\times 64 nested array of uint8 ts. If it had been written in C, the
declaration might have looked like:
unsigned uint8 t characters[32][64];
0123963
0
1
.
.
.
2 unused
.
.
.
.
.
.
23
.
.
. unused
31
The base address for the character buffer is 0x40000.
Each element of the character matrix is represented as a 1-byte uint8 t.
By limiting the displayable characters to uppercase Latin letters, numerals, and some punctuation, and by applying some magic pixie dust, the
designers are able to encode the displayable characters using only 5 bits.
Two bits are used for the characters display mode:
00= white-on-black 01= black-on-white 1x = blinking
The remaining bit is used to indicate whether the cursor should be displayed under the character:
0= do not display cursor here 1= display cursor here
76540
bit vector cursor mode character
Suppose that you want to place the letter W(0x17 in the 5-bit encoding) near the middle of the screen (characters[12][20]), black-on-white,
without the cursor.
What is the hex value for the uint8 t that youd assign to that character?
character[12][20]=0x
How many columns are in the nested array characters[32][64]?
number of columns =
How much memory (in bytes) does each row of the nested array
character occupy?
memory per row =
What is the base address (in hex) for row 12 of the nested array
character?
row address =0x
What is the memory address (in hex) for characters[12][20]?
address

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

Why could the Robert Bosch approach make sense to the company?

Answered: 1 week ago