Added testing of Z flag when updating MACflags.
Added basic FSAND implementation.