Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the reset vector #52

Closed
bicepjai opened this issue Feb 4, 2015 · 1 comment
Closed

the reset vector #52

bicepjai opened this issue Feb 4, 2015 · 1 comment

Comments

@bicepjai
Copy link

bicepjai commented Feb 4, 2015

you are saying the reset vector is

FFFF0000h:FFF0h

then add it as its segmented address

0xffff0000 + 0xfff0
'0xfffffff0'

according to your definition, to get linear address from segmented address, we need to multiple by 16 or left shit 4 and then add the offset right ? should it be

FFFFF000h:FFF0h

in real mode as explained in the
wiki page http://en.wikipedia.org/wiki/Reset_vector

@0xAX
Copy link
Owner

0xAX commented Feb 5, 2015

Hello @bicepjai,

all is correct. Physical address is:

0xffff0000 + 0xfff0
'0xfffffff0'

which is 4gb - 16 bytes. We no need to shift base, it's post-shifting here.

Also you can see in wiki that there is 0xfffff000 base of segment, seems that high F is just sign-expansion.

@0xAX 0xAX closed this as completed Feb 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants