>>And why clear A before you load the number to HL? > >Because you are displaying HL, not AHL. Even if bit 0 of the A register was >set, then you answer would double. You dont want that so clear the A >register you must be tired :) he askin why did you xor the a before you loaded the address into hl not before you displayed ahl