Try:

led var byte

instead of:

led var porta.0

You are defining 'led' to a port pin and then trying to poke it into another port pin.

That should make it work as expected.