added asm code for retrieving cpu ticks