 - removed unnecessary includes  - converted inline asm to C for int enable  - shifted clearing of 'cold' to end of routine
 - removed unnecessary includes
 - converted inline asm to C for int enable
 - shifted clearing of 'cold' to end of routine

Approved by: benno

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase