ASM code for the electronic die project