Is it possible to introduce hexadecimal line numbers in steps of two using the listings
package?
In the MWE
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{listings}
\lstset{basicstyle={\ttfamily\small}}
\lstset{keywordstyle={\bfseries}}
\lstset{numbers=left, numberstyle=\sffamily\tiny}
\begin{document}
\begin{lstlisting}[language={[x86masm]Assembler}]
mov ax, [10]
jz 0A
add bx, [11]
dec ax
jmp 02
mov [12], bx
hlt
\end{lstlisting}
\end{document}
I would like to achieve that 00
, 02
, 04
, 06
, 08
, 0A
, 0C
is printed instead of arabic line numbers.