flat assembler
Message board for the users of flat assembler.

Index > Main > mov BX to EAX ~ the newbiest question

Goto page Previous  1, 2, 3, 4, 5, 6
Author
Thread Post new topic Reply to topic
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 01 Feb 2010, 22:24
Teehee,

0x401000, to be correct. This is default base for PE (4 MiB, 0x400000) plus one page for MZ/PE header (two or more if you have 94+ sections Wink). First section starts there. Should it be code section with entry point leading — it's up to you.

Executable image is loaded in clean virtual address space, so it may be based at (almost) any virtual address. DLLs can quarrel between each other for unoccupied VA space.

At least with MASM I can generate 0-based PE executable (with fixups), so it can be loaded at any appropriate base VA chosen by OS (NT prefers at least 0x10000, 9x/Me is known to choose 0x400000).

Read about logical, linear/virtual and physical addresses in Intel SDM/AMD APM.
Post 01 Feb 2010, 22:24
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3, 4, 5, 6

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.