View Index by Level
RANDOM PAGE

SITE SEARCH

LOG
IN

SIGN UP

HELP

Arithmetic and Logic

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

A2

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

Arithmetic

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.

Logic and Bit Masking

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.

File Register Arithmetic

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