272 THE x86 MICROPROCESSORS
e content in AX is now stored in the video memory, using STOSW. DI should point to iv)
the 2000
th
location of the video memory, since that is where the storing of the content of
AX should start.
e LODSB and STOSW instructions are executed until CX v) = 0. Recollect that for using
the LODSB instruction, the message should be in the data segment and should be pointed
by SI. Here, the data segment is the same as the code segment as we are using the tiny
model.
us, we fi nd the string HELLO WORLD displayed on a green screen.vi)
8.9 | Keyboard Interfacing
Next, let us use BIOS interrupts for the computer keyboard. For that, we fi rst have to under-
stand the computer keyboard, as well as the hardware associated with ...