simulavr-devel
[Top][All Lists]
Advanced

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

Re: [Simulavr-devel] SBI vs. PINx and interrupt flag registers


From: panic
Subject: Re: [Simulavr-devel] SBI vs. PINx and interrupt flag registers
Date: Mon, 19 Jun 2017 11:44:00 +0000

Michael Hennebry:
> I suspect the practical thing to do is
> give each IO register an sbi and cbi method.
> They could all be implemented as a simple read-modify-store,
> a store or a complicated read-modify-store.
> Note that "read" means just get the value in the register,
> do not produce any of the side-effects, if any, associated with a load.
> "Store" means store, as in STS or OUT.

It is not the "store" that is the problem -- it's the "read". Normal
read of a PINx register returns the state of the input stages. However,
"read" during SBI instruction returns 0x00, always.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]