Hi,
Well, that code won't even compile with PBP, which compiler are you using?

* The format 0x07 isn't supported in PBP, to write in hexadecimal notation use $07.
* The individual bits on GPIO registers are accessed as GPIO.x not GPx.

Try changing that for starters and see if it makes it better.

/Henrik.