Menu

#31 using stdin (was: Two more command line options for ndisasm)

open
nobody
None
1
2005-01-21
2003-06-26
Anonymous
No

It would be useful if one could specify a number of
bytes to disassemble, in case one doesn't want the
whole file disassembled. Say -n <count>.

It would be useful to be able to disassemble from stdin.

Van Snyder
Van.Snyder@jpl.nasa.gov

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Amazingly NDISASM already supports stdin. Just type:

    ndisasm - < infile

    I'm gonna look into ading the same capability to NASM.

     
  • Nobody/Anonymous

    Logged In: NO

    Argh, adding stdin support to NASM is not going to
    be as trivial as I had thought initially, because
    the input file is read once per pass. As a result,
    only the very first pass sees the stdin contents.

    So to make this work for NASM, we'd have to buffer
    the stdin contents during the first pass, and use
    that buffered contents during subsequent passes.

    Which isn't something I can spend time on right now.

    Maybe later.

     
  • nasm64developer

    nasm64developer - 2005-01-21

    Logged In: YES
    user_id=804543

    With the attached changes an input file name of "-" can
    be used to select stdin.

    Note that support for -bm or -bf is required -- see SF
    RFE #897003 for details.

     
  • nasm64developer

    nasm64developer - 2005-01-21
    • priority: 5 --> 1
    • summary: Two more command line options for ndisasm --> using stdin (was: Two more command line options for ndisasm)
     
  • nasm64developer

    nasm64developer - 2005-01-21
     
  • Nobody/Anonymous

    Logged In: NO

    It would be also useful to assemble from stdin.

     
  • nasm64developer

    nasm64developer - 2007-04-28

    Logged In: YES
    user_id=804543
    Originator: NO

    SF RFE #1705185 was a duplicate of this

     

Log in to post a comment.