Okay, so I'm gonna try to write a simple VDP register calculator with GTK+. I'm starting with a CLI version though, which asks the user questions about each register and sets the bits in a short accordingly. I'm having a problem though... Code (Text): fprintf(out, "\tdc.w\t$%x\n", reg[0]); where reg is an array of uint16_t prints dc.w $ffff8014 instead of the desired dc.w $8014. Any suggestions?