> ld b, 1
> cp b
> ld de, p1
>
as well as the main point that people have already pointed out, taht
you actuall need to make the decision, using jr z, etc.,
-You can also cp to a number, i.e.
cp 1
jr nz,Not1
ld de,p1
Not1
cp2
...
etc....
Rob Taylor MAIL - mailto:rtaylor@rtaylor.u-net.com
WEB - http://www.u-net.com/~rtaylor/