Is it possible to invert a hex number in VisSim?

Is it possible to literally invert a hex number in VisSim

eg. If I have 0x1234 (0001001000110100), can I get it as 0x2C48 using any simple operation?

Can I write my own C-code / assembly code and create a VisSim block out of it. A value should be passed into the block for proces.

Yes you can

Hi Viswanathan,
You can use the "~" ones complement operator as a prefix to your number in a const block,
or you can use it in an expression block.

Regards,
Pete