Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Memory problem?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
yazigegeda
Expert Cheater
Reputation: 0

Joined: 22 Jan 2019
Posts: 183

PostPosted: Tue Jun 16, 2020 8:12 am    Post subject: Memory problem? Reply with quote

Who can explain the difference between memory and physical memory in detail?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Tue Jun 16, 2020 8:19 am    Post subject: Reply with quote

Virtual memory is a custom layout of physical memory split into blocks of 4096 bytes
Virtual memory points to a physical address, or it points to nowhere

example: (VA=Virtual Address, PA=Physical Address)
VA 0 points to PA 0x12345000
VA 0x1000 points to PA 0x03213000
VA 0x2000 points to nowhere
VA 0x3000 points to PA 0x03213000

If you access virtual address 0, you actually access the memory at physical address 0x123450000
if you write to the virtual address 0x1000 and then read the virtual address 0x3000 you will read what you wrote at 0x1000 as the virtual memory points to the same physical memory
if you try to access 0x2000 you will get a pagefault error

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
yazigegeda
Expert Cheater
Reputation: 0

Joined: 22 Jan 2019
Posts: 183

PostPosted: Tue Jun 16, 2020 9:19 am    Post subject: Reply with quote

Dark Byte wrote:
Virtual memory is a custom layout of physical memory split into blocks of 4096 bytes
Virtual memory points to a physical address, or it points to nowhere

example: (VA=Virtual Address, PA=Physical Address)
VA 0 points to PA 0x12345000
VA 0x1000 points to PA 0x03213000
VA 0x2000 points to nowhere
VA 0x3000 points to PA 0x03213000

If you access virtual address 0, you actually access the memory at physical address 0x123450000
if you write to the virtual address 0x1000 and then read the virtual address 0x3000 you will read what you wrote at 0x1000 as the virtual memory points to the same physical memory
if you try to access 0x2000 you will get a pagefault error




Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites