Tony Nixon stated: > > > for example > > > movb pa0,z > > > now translates to > > > > > BTFSS status, z > > > BCF status, pa0 > > > BTFSC status, z > > > BSF status, pa0 > "Paul B. Webster VK2BZC" replied: > > > > Is that *exactly* what the Parallax assembler does? Must be. > Tony Nixon said: > This is the hex code generated with spasm /l for movb rp0,z (16c74) > Notice I had to replace pa0 with rp0. (pa0 is a 16c5x symbol) > > 1D03 1283 1903 1683 > > Sorry about this, I'm not used to Parallax mnemonics, so I'm guessing that movb a,b copies the state of bit b to bit a? Anyway, if the bit being set is not a PORT bit or a TRIS bit, then one of the bit tests is possibly redundant. BCF some_reg, 0 BTFSC status, z BSF some_reg, 0 Maybe you could make your translator do some optimising Tony! Regards Mike Rigby-Jones