To gain access to revision questions, please sign up and log in.

**A2:**- AQA Microncontroller
**Arithmetic, Logic**- Count to 99
- Bit Masks
- IO Ports
- Microncontrollers
- Tristate Logic
- reviseOmatic
- Polling/Interrupts
- Port Writing
- Subroutines
- Run the Simulator

The AQA processor has the following commands acting on the working register "W" for arithmetic and logic ...

These operations act on the working register ( W ).

ADDW K Add K to W and store the result in W. SUBW K Subtract K from W and store the result in W.

These operations act on the working register ( W ).

AND masking either leaves bits unchanged or it forces them to zero.

OR masking
either leaves bits unchanged or it forces them to one.

XOR masking
either leaves bits unchanged or it inverts them.

ANDW AND K with W and store the result in W. ORW OR K with W and store the result in W. XORW XOR K with W and store the result in W.

These operations act on memory locations also known as the file registers.

INC (R) Add one to the value stored in location R. DEC (R) Subtract one from the value stored in location R.

**reviseOmatic V3 **
Contacts, ©, Cookies, Data Protection and Disclaimers
Hosted at linode.com, London