🎴 Flashcard Mode
Java Programming Fundamentals
Card1 / 20
Mastered0
Review0
QuestionClick to flip
void main(){ char far *p = 0x417; *p=64; }
AnswerClick to flip back
A
puts Capslock on
💡 Explanation:
In DOS/BIOS environments, memory address 0x417 (segment 0x0000, offset 0x0417) is the BIOS keyboard data area that stores the keyboard shift status byte. The bits in this byte control toggle keys like CapsLock, NumLock, ScrollLock. Setting bit 6 (value 64) turns on CapsLock. This is a direct hardware manipulation through memory-mapped I/O.