This looks like code for an 8051 microcontroller. First read the documentation or a tutorial (Google came up with
this[
^] site)
I no longer remember how to configure the serial port, you'll have to look up the appropriate register settings.
Other than that, your code looks OK, try calling
SerTx
with each character of the AT command sequence.