CZ flag standardized order
ozpropdev
Posts: 2,792
in Propeller 2
Chip
The condition definitions show thr following aliases
The condition definitions show thr following aliases
%0001 if_nc_and_nz if_nz_and_nc if_a if_00 %0100 if_c_and_nz if_nz_and_c if_01 %0010 if_nc_and_z if_z_and_nc if_10 %1000 if_c_and_z if_z_and_c if_11Using the aliases of IF_00,IF_01,IF_10 and IF_11 assuming the same order as the SETCZ instruction the result is transposed.
setcz #%01 wc,wz 'force task1 if_11 jmp #task3 if_10 jmp #task2 'jumps to task2 if_01 jmp #task1 if_00 jmp #task0Just a little "tweak" to Pnut
Comments
e.g. "if_0110" is the same as "if_z_ne_c", and "if_1000" is the same as "if_z_and_c"
The problem with this is that it will probably be easy to get the middle two bits mixed up.
Those should already be in there.
The CCCC bit interpretations are the same as they were on the P1.