Help with some code please ...


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

Help with some code please ...



Hi all.

I've been programming assembly on computers for nearly 10 years and it's not
until now that I've ever experienced a chip so obscure as the Z80.  Im used
the 68xx(x) series where you can actually do normal operations on all of the
registers.

Anyway.  Im a hardware person on the TI-85 and I use C for programs.

I have a pointer to block of memory (say P)
and a variable initialised to 255 (say A)

I want to do this (in pseudo code)

P=start of block
A=255

loop

A=A XOR [P]
[P]=A
P=P+1
IF P <= end of block goto loop

I've tried writing this but I cant compare a 16 bit number with the address
of the end of the block.

Help please. !  It will look good in the end

Thanks

Asurah
Jon@marzipan.demon.co.uk


Follow-Ups: