Mixing asm & java explained