Hello, I've written a PRU program which manipulates bits in one of the registers. The program does not compile with PASM when I use the ~ operator.
Setting multiple bits works: or r3.b0, r3.b0, 1<<3 // Set bit 3 but clearing multiple bits does not: and r3.b0, r3.b0, ~(1<<3) // Clear bit 3 The exact compiler error is " Error: Syntax error in parameter 3". This should work since it comes straight from the TI wiki on the PRU: http://processors.wiki.ti.com/index.php/PRU_Assembly_Instructions#Bitwise_AND_.28AND.29 Is this a bug or am I doing something wrong? Thanks, Michael -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
