Originally Posted by
Chistophe516
There isn't anything saying you need to dismount, in the linked MGL code, or any associated MGL code. Also, It is not up to the discretion of the officer.
Practically speaking,
this isn’t quite true.
The officer will write the ticket based on whatever he thinks the law says and leave it to you to work it out in court.