cleanup: rework memory acces mode handling

Don't encode each memory mode with seperate flags. Instead use
a flag-based field to encode the corresponding memory mode value
of 32 bits instructions. This way we can remove the special handling
of 16 bits instructions memory modes.