Re: A83: Got another one for 'ya


[Prev][Next][Index][Thread]

Re: A83: Got another one for 'ya




At 13:01 1998-06-14 -0700, you wrote:
>
>oops, xor h    xor l
>only 2 clocks faster and 1 bytes smaller
>

sorry that doesn't work either :)
in the z80 you can only xor with the A register so
that would xor H with A and then xor L with A.. (and put the result in A)

to use the xor method you need to do

ld	a,h
xor	h	;or xor a.. doesn't matter..
ld	h,a
ld	a,l
xor	l 	; same here..
ld	l,a

and that seems rather pointless and that is not faster or smaller than ld
HL,0 :) 

//Olle


References: