:stupid:
Who know how to Display in Dos?
and Display Color picture(640*480)?
What Address it will use?
I noly know the 256 color in 320 * 200?
Thanks a lot!:grin:
Posted on 2003-06-26 21:21:08 by Dreamcatcher
have you try addressing at 0xA000 ?
Posted on 2003-06-27 02:03:51 by Bit7
Use VESA Mode.




mov ax,4f02h
mov bx,115h
int 10h ; 1024x68-24 Bit

access it via 0xDD000000 If I remember it corectly, it about 240000-hexbyte. It address are not protected.




xor ds,ds ; On real mode DS must zero. DS are the base.
mov esi,0dd000000
mov [esi],eax

Posted on 2003-06-27 09:23:49 by realvampire
:stupid: ??????(the chinese can display on yours system?):grin:
Posted on 2003-06-28 06:51:24 by Dreamcatcher
What? There's no such instruction... Besides, you'll get a GPF if you use an offset larger than 64K in real mode, unless you change the limit. In V86 mode the limit is fixed at 64K and 0xDD000000 would most likely not correspond to physical address 0xDD000000. And this address depends on the cards you have installed in your computer. On mine, it's at 0xE3000000. But on other computers, there might not even be one.
Posted on 2003-06-28 08:17:09 by Sephiroth3
OK,but Where have the code?
Posted on 2003-06-28 21:05:40 by Dreamcatcher

What? There's no such instruction... Besides, you'll get a GPF if you use an offset larger than 64K in real mode, unless you change the limit. In V86 mode the limit is fixed at 64K and 0xDD000000 would most likely not correspond to physical address 0xDD000000. And this address depends on the cards you have installed in your computer. On mine, it's at 0xE3000000. But on other computers, there might not even be one.



Enter Protected Mode first. I dont know about the mem, I think it around 0xD00000000~0xE0000000.
Posted on 2003-06-28 21:41:09 by realvampire
you can also flip video pages to address other parts of the screen in real mode using some VESA interrupt. There is some faster way by calling the function directly, but i don't remember exactly what is to be done there.
Posted on 2003-06-28 23:28:22 by jademtech

you can also flip video pages to address other parts of the screen in real mode using some VESA interrupt. There is some faster way by calling the function directly, but i don't remember exactly what is to be done there.


Flag. Interupt need flag.




mov ax,10h. < Interupt address
mov cl,4 < Mul with 4
mul cl
mov si,ax

xor cx,cx
mov ds,cx


pushf
call double word ptr [si] ; Call [DS:SI]



I have not test it, but I think it work that way. Dont forgot the parameter, it still passed from register. Use Vesa set bank Function to use with address 0xA000. Thank you.
Posted on 2003-06-29 09:49:29 by realvampire