Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: vga bios in...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 4625 of 4728
Post > Topic >>

Re: vga bios initialization entry point

by ArarghMail804NOSPAM <spamtrap@[EMAIL PROTECTED] > Apr 21, 2008 at 05:09 AM

On Mon, 21 Apr 2008 00:24:22 -0700 (PDT), "stamari@[EMAIL PROTECTED]
"
<spamtrap@[EMAIL PROTECTED]
> wrote:

>Hi,
>
>My desktop machine has an Intel integrated vga chip:
>00:02.0 VGA compatible controller: Intel Cor****ation 82G965 Integrated
>Graphics Controller (rev 02)
>
>I disassembled the code at C000: and got this:
>0000c0000 55               push bp
>0000c0001 aa               stosb
>0000c0002 58               pop ax
>0000c0003 e919a8           jmp 0xba81f
>0000c0006 3030             xor [bx+si], dh
>0000c0008 3030             xor [bx+si], dh
>0000c000a 3030             xor [bx+si], dh
>0000c000c 3030             xor [bx+si], dh
>0000c000e 3030             xor [bx+si], dh
>0000c0010 3030             xor [bx+si], dh
>0000c0012 8c18             mov [bx+si], ds
>0000c0014 e97d17           jmp 0xc1794
>0000c0017 234000           and ax, [bx+si+0x0]
>0000c001a b00a             mov al, 0xa
>0000c001c 3030             xor [bx+si], dh
>0000c001e 49               dec cx
>
>How come the vga bios jumps to code that starts at an address that is
>smaller than C0000?
>The jump at C0014 jumps to some code that looks like the card's actual
>initialization code. Any reason why this jmp is placed at offset 14h ?
>
>Anyone here got any idea what I'm seeing?
Errors.  
First step is to learn the format of a bios rom.  

For example, the first 2 bytes are a flag word, not instructions.  The
third byte is supposed to be a length code, but I don't think that
'58' is right.  My vga bios has '40'.  

Did you deassemble this as 16-bit code or 32-bit code ?  '0xba81f' is
not a possible address in 16-bit code, which is what a vga bios should
be.
-- 
ArarghMail804 at [drop the 'http://www.'
from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the extra stuff from the reply address.
 




 7 Posts in Topic:
vga bios initialization entry point
"stamari@[EMAIL PROT  2008-04-21 00:24:22 
Re: vga bios initialization entry point
Brendan <spamtrap@[EM  2008-04-21 07:07:12 
Re: vga bios initialization entry point
Cyril Novikov <spamtr  2008-04-21 08:43:11 
Re: vga bios initialization entry point
ArarghMail804NOSPAM <s  2008-04-21 05:09:11 
Re: vga bios initialization entry point
"stamari@[EMAIL PROT  2008-04-21 10:49:48 
Re: vga bios initialization entry point
"stamari@[EMAIL PROT  2008-04-21 11:33:38 
Re: vga bios initialization entry point
Mike Gonta <spamtrap@  2008-04-25 13:55:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 0:20:46 CDT 2008.