Shop OBEX P1 Docs P2 Docs Learn Events
wrlong and shadow registers — Parallax Forums

wrlong and shadow registers

agodwinagodwin Posts: 72
edited 2008-07-08 20:12 in Propeller 1
I tried to record the time of an event by executing

wrlong cnt, bufferptr

but always recorded a zero at bufferptr.

I guess that this is an effect of the shadow registers, since cnt is read-only and wrlong uses the d-field to address the source register. However, I get a similar effect if I execute

wrlong phsa, bufferptr

- as I understand it, this should work OK.

I haven't been able to find any description of this in the docs I've read - can anyone explain it, please ?

Comments

Sign In or Register to comment.