Hi I beleive you can not use buttons as multiplexed. What I did last time was to use a single button, and in the code, use the button tag and the multiplex tag value to drive M bits
So something like this
if button=1 and multitag=0 then M.0=1
if button=1 and multitag=1 them M0.1=1
etc