My link is misbehaving. Someone please run the following on a calculator (not an emulator) and tell me whether the output is 0 or 1. xor a ld hl,blah ld (hl),a blah: inc a add a,'0' call _putmap -------- Dan Eble (mailto:eble@cis.ohio-state.edu) (http://www.cis.ohio-state.edu/~eble) "Behold, how great a matter a little fire kindleth!" -- James 3:5