Final working hardware ASM code v1.0