Question: 1:Consider the following statement: The behavior that a user sees a program exhibit is fully defined in the machine code contained by it's executable. Is

1:Consider the following statement: The behavior that a user sees a program exhibit is fully defined in the machine code contained by it's executable. Is this statement correct? Answer yes/no, and justify your answer.

2:

In older computers, pixels representing the screen were stored at specific memory addresses (e.g. 0xC00000 to 0xFF0000). This meant that setting the color value of a pixel was as simple as doing an operation to change the contents of memory location (e.g., POKE (0xC0000000+640*y+x 0x990033) to set the pixel at x,y to a maroon color (990033 is a standard hex color). On a more advanced system, there would be additional region (say 0xFF0000 to 0xFFFFFF) which stored a color palette, where 0xFF0000 contained the color 0, 0xFF0001 contained the color 1, and so on. What type of effect can be efficiently implemented in graphics applications if the system uses a pallet instead of direct color values? Explain why your effect would be slow without a pallet.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!