updated sicxe_asm with algorithm from book