[Assembler] Today's purpose of segment : offset? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Bananenbrot's Avatar Contributor
    Reputation
    153
    Join Date
    Nov 2009
    Posts
    384
    Thanks G/R
    1/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Assembler] Today's purpose of segment : offset?

    Hi there...
    While learning reversing, I stumbled over the usage of the segment : offset syntax, for example

    Code:
    LEA EDI,DWORD PTR SS:[EBP-CC]
    in Olly.
    I don't worry about that -CC, which is probably an offset to a variable on the stack after a struct or something which isn't really important to me right now.

    I mean, I already read stuff about segment : offset addressing, 20-bit mode etc., so why do we need something like SS:[EBP] in protected 32-bit mode?
    From what I read in various tuts, "today's" segment : offset addressing is something like
    segment | offset
    0xFADD | 0x1337 = 0xFADD1337.

    The problem I see, is that EBP is 32-bits wide, therefore I assumed that only BP is used in that operator (?), but even that doesn't make sense to me, because the higher bits of EBP would be in most cases equal to SS.

    So, I'm kinda messing around with some basic assembler code because I did not get my hands on a good reference till now. I'm ashamed to ask if some of you could help me out and/or give me a good reference?

    [Assembler] Today's purpose of segment : offset?

Similar Threads

  1. WoW Offsets & WPE
    By RyanoAthens in forum World of Warcraft General
    Replies: 2
    Last Post: 03-11-2014, 10:15 PM
  2. new offsets for new patch today???
    By frenchtwist1 in forum WoW Bot Maps And Profiles
    Replies: 1
    Last Post: 05-21-2013, 02:36 PM
  3. Replies: 15
    Last Post: 01-01-2007, 07:38 PM
  4. How do you find memory offsets in the game?
    By koalaz2004 in forum World of Warcraft General
    Replies: 0
    Last Post: 08-18-2006, 09:40 PM
All times are GMT -5. The time now is 07:55 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search