🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.asm
Article #430

Re: The offset is so large

#430
From: Evenbit
Date: Sat, 10 Jun 2006 04:44
21 lines
1849 bytes
cmk...@hotmail.com wrote:
> Hi
>    This is the disassemble from my c++ object file,
>
>         char tempBuffer[0x20];
> tempBuffer[0]=0x12;
>     70e8:       c6 45 b8 12             movb   $0x12,0xffffffb8(%ebp)
> tempBuffer[0x10]=0x34;
>     70ec:       c6 45 c8 34             movb   $0x34,0xffffffc8(%ebp)
>
> Why the offset is 0xffffffb8? it is so large
>
> thanks
> from Peter (cmk128@hotmail.com)

Those are negative numbers.  They are in two's compliment form.  Some
suggested reading:
http://webster.cs.ucr.edu/AoA/Windows/HTML/DataRepresentationa5.html#999509

Nathan.
Technical Details
Message-ID: <1149914640.918612.222890@m38g2000cwc.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m38g2000cwc.googlegroups.com!not-for-mail
References: <1149914165.205201.192150@m38g2000cwc.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f7d8d,c887c247d41a26de
X-Google-Thread: 11318c,c887c247d41a26de
X-Google-Attributes: gidf7d8d,gid11318c,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m38g2000cwc.googlegroups.com!not-for-mail
From: "Evenbit" <nbaker2328@charter.net>
Newsgroups: alt.lang.asm,gnu.gcc.help
Subject: Re: The offset is so large
Date: 9 Jun 2006 21:44:00 -0700
Organization: http://groups.google.com
Lines: 22
Message-ID: <1149914640.918612.222890@m38g2000cwc.googlegroups.com>
References: <1149914165.205201.192150@m38g2000cwc.googlegroups.com>
NNTP-Posting-Host: 65.122.72.144
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1149914644 26917 127.0.0.1 (10 Jun 2006 04:44:04 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 10 Jun 2006 04:44:04 +0000 (UTC)
In-Reply-To: <1149914165.205201.192150@m38g2000cwc.googlegroups.com>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050921,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: m38g2000cwc.googlegroups.com; posting-host=65.122.72.144;
   posting-account=qfuwVQ0AAAA0E0VGBQa0ep-37IuMebip