So are you looking to . . .
AC5 var PORTC.5
AC4 var PORTC.4
AC3 var PORTB.3
AC2 var PORTB.1
AC1 var PORTB.5

AC = %00010101
and then have the listed ports go high according to the declaration above?
If SO try AC = ~~%00010101