code used TPTD and ASM