In standard text mode attribute byte formatting (`B IRGB I rgb`), which bit position controls 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 41 โ 50 of 264 Questions
Page 5 of 27
In standard 80x25 text mode video memory, what formula is used to calculate the byte offset address of a screen character location from row position (`hypos`) and column position (`epos`)?
Which five fundamental primitive instructions are provided in x86 assembly language for string manipulation operations?
Which x86 string instruction transfers a byte or word from register `AL` or `AX` to the string memory location pointed to by `ES:DI` and automatically updates `DI`?
Which x86 string instruction transfers a byte or word from the source memory location pointed to by `DS:SI` into register `AL` or `AX` and automatically updates `SI`?
Which x86 string instruction compares a byte or word in register AL or AX with the destination string element addressed by ES:DI and updates the CPU status flags?
__________ repeats the following string instruction as long as the Zero Flag is set (ZF = 1), whereas REPNE or REPNZ repeats while the Zero Flag is clear (ZF = 0).
The `REP` repeat prefix repeats a string instruction (e.g., `MOVSB`, `STOSB`) according to the count value stored in which register?
In the assembly instruction `mov word [es:160], 0x1230`, the byte value `0x30` represents which ASCII character?
In standard 80x25 text mode video memory, executing `mov word [es:160], 0x1230` will display a character at which screen location?