Format x86 assembly constants in a yasm compatible manner

This is similar to what was done in a6463be0cc7 - yasm requires
these constants to have a zero after $.
Merge pull request #505 from mstorsjo/x86-asm-constants

Format x86 assembly constants in a yasm compatible manner