Z status from BIT operation

Basic and Machine Language

Moderator: Moderators

Post Reply
rhurst
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

Post by rhurst »

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?
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
User avatar
Mike
Herr VC
Posts: 4816
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Re: Z status from BIT operation

Post by Mike »

wimoos
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

Post by wimoos »

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.
VICE; selfwritten 65asmgen; tasm; maintainer of WimBasic
Post Reply