Use 0x00... as the magic constant to write in st0. That should be reliably 0 regardless of OS/hardware