this routine is supposed to truncate hl (er divide it by 8) 3 bits and put the result in A, but it doesnt seem to be working right. what am i doing wrong? A_HL_DIV_8: SRA L SRA L SRA L RR H RR H RR H LD A,L XOR H RET ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com