Implement BCD Arithmetic
Python - 47 chars

bcd=lambda*a:&quot;0x%08d&quot;%eval(&quot;%x%s%x&quot;%(a*2)[::2])

tests
&gt;&gt;&gt; print bcd(0x00000127, 0x00000003, '+')
0x00000130
&gt;&gt;&gt; print bcd(0x00000127, 0x00000003, '*')
0x00000381
&gt;&gt;&gt; print bcd(0x00000127, 0x00000003, '/')
0x00000042
&gt;&gt;&gt; print bcd(0x00000127, 0x00000003, '-')
0x00000124