In text-mode video attribute byte layout, which bit position specifies the Green component of the foreground color?
Ch 07: Video Memory & Screen Display
Covers direct text manipulation on 80x25 character screens, calculating screen offsets ((Row * 80 + Col) * 2), attribute byte structure (foreground, background, blink bit), and converting binary values to ASCII strings.
264 Questions264 MCQs0 Short Questions0 Long Questions
SEMESTER PASS
CS401 - Computer Architecture and Assembly Language Programming Examination Practice
Timed practice exam simulation for CS401 - Computer Architecture and Assembly Language Programming.
Showing 141 โ 150 of 264 Questions
Page 15 of 27
In standard 80x25 text-mode video memory ($0\text{xB8000}$), what formula calculates the video memory byte offset for a given screen location at zero-indexed coordinates (`Row`, `Column`)?
In 80x25 text-mode video memory architecture, which formula accurately calculates the memory byte offset for a screen position specified by vertical coordinate (`ypos`) and horizontal coordinate (`xpos`)?
What are the five primary primitive string manipulation instructions available in x86 assembly language?
Which x86 string instruction transfers a byte or word from register `AL` or `AX` to the memory destination addressed by `ES:DI` and updates `DI` according to the Direction Flag?
Which x86 string instruction transfers a byte or word from the source memory location `DS:SI` into register `AL` or `AX` and updates `SI` according to the Direction Flag?
Which x86 string instruction compares the byte or word in accumulator register `AL` or `AX` with the memory destination element addressed by `ES:DI` and updates status flags accordingly?
Which pair of repeat prefixes repeats the subsequent string instruction as long as the Zero Flag is set (`ZF = 1`) and register `CX != 0`?
What is the primary action performed by the `LES` instruction in x86 assembly language?
What is the primary action performed by the `LDS` instruction in x86 assembly language?