When using a very long bytefield I want to use resizebox so it fits in a page. However there seems to be a incompatibility. Based from this answer I assumed it would be easy to do but I face errors when doing so.
MWE
\documentclass{article}
\usepackage{bytefield}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\resizebox{\linewidth}{4em}{%
\begin{bytefield}[bitwidth=2em]{29}
\bitheader{0-29}\
\bitbox{1}{M} & \bitbox{6}{Start address} & \bitbox{6}{End address} & \bitbox{1}{I/D} & \bitbox{5}{I/D value} & \bitbox{6}{Initial delay} & \bitbox{2}{O.C.} & \bitbox{1}{I.C.}\
\end{bytefield}}
\caption{\label{fig:basic_instruction} Basic instruction}
\end{figure}
\end{document}
