Z80 Divide by 10

Holger Veit holger.veit at iais.fraunhofer.de
Sun Jan 27 10:58:13 CST 2008


Sean Conner said:
[...]
>   I find it amazing that there's an instruction set even more annoying
> than
> the 8086 (segments and all).  I was amazed at the lopsidedness of the
> instruction set.  I'm beginning to think I was lucky in skipping this
> particular chip (my first 8-bit was the 6809, so I think I got spoiled).
> There doesn't even seem to be an easy way to get the stack pointer, and
> the
> only way I can see of doing it is:
>
> 	or	a
> 	sbc	hl,hl
> 	add	hl,sp
>
>   and no real good way of indexing the stack.

Move HL to IX or IY on the Z80 and you can have normal indexing. No
autoincrement and -decrement though, so no real push/pop and IX,IY are
just index registers, not stacks.

-- 
Holger



More information about the cctalk mailing list