I get how the status register bits N and V get set/unset from a BIT MEMORY operation, irrespective of ACCUMULATOR.
Is it accurate that the status register Z bit gets set/unset from the boolean result of MEMORY AND ACCUMULATOR?
Z status from BIT operation
Moderator: Moderators
-
- Omega Star Commander
- Posts: 1369
- Joined: Thu Jan 31, 2008 2:12 pm
- Website: https://robert.hurst-ri.us
- Location: Providence, RI
- Occupation: Tech & Innovation
Z status from BIT operation
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
https://robert.hurst-ri.us/rob/retrocomputing
-
- Vic 20 Afficionado
- Posts: 345
- Joined: Tue Apr 14, 2009 8:15 am
- Website: http://wimbasic.webs.com
- Location: Netherlands
- Occupation: farmer
Re: Z status from BIT operation
The referred article is incomplete.
The BIT #(immediate) instruction (in 65816, and also in 65C02) does affect Z, but does NOT affect N and V.
Regards,
Wim.
The BIT #(immediate) instruction (in 65816, and also in 65C02) does affect Z, but does NOT affect N and V.
Regards,
Wim.
VICE; selfwritten 65asmgen; tasm; maintainer of WimBasic