It doesn't. Several instructions, like TP, set the condition code, but their settings do not correspond to the canonical values of equal/zero, low/minus/mixed, high/positive, and overflow/ones. It's best to use something else for those cases to avoid confusion, like a binary constant.
sas On Thu, Jan 9, 2025 at 1:36 PM Seymour J Metz <sme...@gmu.edu> wrote: > I wouldn't expect a comparison operator compared with a condition code to > work. Use EQ on instructions that compare two operands and use Z on > instructions that don't. > > Question will this work? > > IF (SR,R1,R3,Z) > > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > עַם יִשְׂרָאֵל חַי > נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר > >