Change naked asm functions to accept enum declaration.

An enum defines constant values which can be used without trouble in
naked asm functions.