after setting AL=13H, and a INT 10H (I know that this will set the VGA Mode),
How can I do somethting to display something on the screen?
Someone says use STOSB, but can anyone tell me WHY? and is there any other ways
to this?
Posted on 2004-06-19 11:48:12 by ahpho
You will have a linear framebuffer of 320x200 pixels at segment A000h in mode 13h (8 bit indexed).
Just write to it to draw pixels.
Posted on 2004-06-19 12:22:37 by Scali
after setting AL=13H, and a INT 10H (I know that this will set the VGA Mode),


We must be discussing different interrupts/functions.

Int 10h, function 13h = Write string

Calling registers:
AH 13h
AL Write mode
BH Video page
BL Attribute
CX string length
DH row to write string
DL column to write string
ES:BP pointer to string

Return registers: Nothing

If you trying to set video mode try Int 10h, function 00h. There are other methods for writing string such as Int 21, function 09h; Int 10h, functions 09h or 0Ah.

hope this is helpful, best regards,

czDrillard
Posted on 2004-06-20 10:21:59 by czDrillard
He set al to 13h, not ah, ah was most probably 00h, so that is "Set video mode 13h", as he also said :)
Posted on 2004-06-20 11:46:48 by Scali
You're probably right Scali, :o my mistake. I better follow my own advice and check the brain gears :)

best regards,

czDrillard
Posted on 2004-06-20 20:07:52 by czDrillard