Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dis(1) — OS/MP 4.1C

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

as(1)

strip(1)

DIS(1)  —  USER COMMANDS

NAME

dis − SPARC disassembler

SYNOPSIS

dis  [ -o ]  [ -g ]  [ -V ]  [ -F function ] file [ file . . . ]

DESCRITPION

dis disassembles SPARC object code into assembly language. 

OPTIONS

-o Print all numeric values in octal.  Default is hex. 

-V Print dis version number. 

-F function
Disassemble only the named function.  function is a function in one of the file parameters.  When file has been run through strip(1), the -F option will not work.  More than one -F option may be specified. 

-g Tell dis that file was compiled with -g and to use that additional symbol table information. 

EXAMPLE

An example output from dis is shown below. 

% dis -Fdo_add testfun
 ∗∗∗∗  SPARC DISASSEMBLER  ∗∗∗∗
  disassembly for testfun
_do_add()
    2128:  033f ffff      sethi   %hi(0xfffffc00),%g1
    212c:  8200 6360      add     %g1,0x360,%g1
    2130:  9de3 8001      save    %sp,%g1,%sp
    2134:  f027 a044      st      %i0,[%fp+0x44]
    2138:  f227 a048      st      %i1,[%fp+0x48]
    213c:  1100 0020      sethi   %hi(0x8000),%o0
    2140:  c11a 2018      ldd     [%o0+0x18],%f0
    2144:  c13f bff8      std     %f0,[%fp+-0x8]
    2148:  1100 0020      sethi   %hi(0x8000),%o0
    214c:  c11a 2020      ldd     [%o0+0x20],%f0
    2150:  c13f bff0      std     %f0,[%fp+-0x10]
    2154:  1100 0020      sethi   %hi(0x8000),%o0
    2158:  c102 2028      ld      [%o0+0x28],%f0
    215c:  c127 bfec      st      %f0,[%fp+-0x14]
    2160:  c11f bff0      ldd     [%fp+-0x10],%f0
    2164:  c13b a058      std     %f0,[%sp+0x58]
    2168:  9803 a060      add     %sp,0x60,%o4
    216c:  9027 a028      sub     %fp,0x28,%o0
    2170:  d202 0000      ld      [%o0+%g0],%o1
    2174:  d402 2004      ld      [%o0+0x4],%o2
    2178:  d223 2000      st      %o1,[%o4+0]
    217c:  d202 2008      ld      [%o0+0x8],%o1
    2180:  d423 2004      st      %o2,[%o4+0x4]
    2184:  d402 200c      ld      [%o0+0xc],%o2
    2188:  d223 2008      st      %o1,[%o4+0x8]
    218c:  d202 2010      ld      [%o0+0x10],%o1
    2190:  d423 200c      st      %o2,[%o4+0xc]
    2194:  d223 2010      st      %o1,[%o4+0x10]
    2198:  c307 bfec      ld      [%fp+-0x14],%f1
    219c:  85a0 1921      fstod   %f1,%f2
    21a0:  c523 a074      st      %f2,[%sp+0x74]
    21a4:  d403 a074      ld      [%sp+0x74],%o2
    21a8:  c723 a074      st      %f3,[%sp+0x74]
    21ac:  d603 a074      ld      [%sp+0x74],%o3
    21b0:  d007 bff8      ld      [%fp+-0x8],%o0
    21b4:  d207 bffc      ld      [%fp+-0x4],%o1
    21b8:  da03 a058      ld      [%sp+0x58],%o5
    21bc:  4000 000b      call    0xb        <21e8> (_do_float_add)
    21c0:  0100 0000      nop
    21c4:  d007 a044      ld      [%fp+0x44],%o0
    21c8:  d607 a048      ld      [%fp+0x48],%o3
    21cc:  9002 000b      add     %o0,%o3,%o0
    21d0:  1080 0003      b       0x3        <21dc>
    21d4:  0100 0000      nop
    21d8:  9010 2000      mov     0,%o0
    21dc:  b010 0008      mov     %o0,%i0
    21e0:  81c7 e008      jmpl    %i7+0x8,%g0
    21e4:  81e8 0000      restore %g0,%g0,%g0

SEE ALSO

as(1), strip(1)

CAVEATS

The printing of line number information from the symbol table is not supported. 

as recognizes many more pseudo op codes than dis.  The three assembly language instructions recognized by dis are mov, cmp, and nop. 

COPYRIGHT

Copyright, 1989 Solbourne Computer, Inc. 

AUTHOR

Neil Nelson, Solbourne Computer, Inc. 

Solbourne Computer, Inc.  —  4 Jan 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026