在该包的帮助下listings
:
\documentclass{article}
\usepackage{listings}
\lstset{numbers=left, numberstyle=\tiny,frame=single}
\begin{document}
\begin{lstlisting}[caption={Your caption text}, label=labeltext, captionpos=b]
.i 4
.o 1
-10- 1
\end{lstlisting}
\end{document}