Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #8886

Re: 13 year old C source - Thanks to all

From "BartC" <bc@freeuk.com>
Newsgroups comp.lang.c
Subject Re: 13 year old C source - Thanks to all
Date 2011-07-29 23:23 +0100
Organization A noiseless patient Spider
Message-ID <j0vbsb$hug$1@dont-email.me> (permalink)
References <j0tdfo045i@news1.newsguy.com> <ln1ux9f5w6.fsf@nuthaus.mib.org> <87fwlpvyrk.fsf@blp.benpfaff.org>

Show all headers | View raw



"Ben Pfaff" <blp@cs.stanford.edu> wrote in message
news:87fwlpvyrk.fsf@blp.benpfaff.org...
> Keith Thompson <kst-u@mib.org> writes:
>
>> buck <buck@private.mil> writes:
>> [...]
>>>> 'static char v[]={-20,-124,-180,-93,-88,-73,-27,-146,9,-38,-179 ...'
>>>
>>> I've examined the object code to see what values are present there but
>>> haven't found this array yet.
>>
>> This might help:
>>
>> ec 84 4c a3 a8 b7 e5 6e 09 da 4d
>
> Out of curiosity, I fed this into an 8086 disassembler, but the
> results don't make much sense so I doubt that this is 8086
> machine code:
>
>   0:   ec                      in     (%dx),%al
>   1:   84 4c a3                test   %cl,-0x5d(%si)
>   4:   a8 b7                   test   $0xb7,%al
>   6:   e5 6e                   in     $0x6e,%ax
>   8:   09 da                   or     %bx,%dx
>   a:   4d                      dec    %bp

Start disassembling at the 4C byte, it makes slightly more sense.

But even it it was machine code, why would it be expressed with an extra 9th
bit? And why not use the assembler that apparently is available?

-- 
Bartc 

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

13 year old C source - Thanks to all buck <buck@private.mil> - 2011-07-29 04:38 +0000
  Re: 13 year old C source - Thanks to all Roberto Waltman <usenet@rwaltman.com> - 2011-07-29 10:37 -0400
  Re: 13 year old C source - Thanks to all Kenneth Brody <kenbrody@spamcop.net> - 2011-07-29 11:02 -0400
  Re: 13 year old C source - Thanks to all Keith Thompson <kst-u@mib.org> - 2011-07-29 08:44 -0700
    Re: 13 year old C source - Thanks to all blp@cs.stanford.edu (Ben Pfaff) - 2011-07-29 09:26 -0700
      Re: 13 year old C source - Thanks to all Roberto Waltman <usenet@rwaltman.com> - 2011-07-29 12:42 -0400
        Re: 13 year old C source - Thanks to all Keith Thompson <kst-u@mib.org> - 2011-07-29 11:16 -0700
      Re: 13 year old C source - Thanks to all "BartC" <bc@freeuk.com> - 2011-07-29 23:23 +0100
      Re: 13 year old C source - Thanks to all Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-07-29 17:01 -0600
        Re: 13 year old C source - Thanks to all Gene <gene.ressler@gmail.com> - 2011-08-02 16:20 -0700
  Re: 13 year old C source - Thanks to all Stephen Sprunk <stephen@sprunk.org> - 2011-07-29 11:03 -0500
  Re: 13 year old C source - Thanks to all Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-07-29 16:57 -0600
    Re: 13 year old C source - Thanks to all buck <buck@private.mil> - 2011-08-02 17:11 +0000
      Re: 13 year old C source - Thanks to all Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-08-02 12:29 -0600
  Re: 13 year old C source - Thanks to all Gene <gene.ressler@gmail.com> - 2011-07-31 06:10 -0700
  Re: 13 year old C source - Thanks to all Michael Press <rubrum@pacbell.net> - 2011-08-03 21:08 -0700

csiph-web