ACCESSING PORTS

This wouldn't work:

portB=H5f

This would:
PORTB=0x5F

You can dec/increment the value in the port register too:

PORTB++;
PORTB += 10;
PORTB--;

And toggle all bits at once:

PORTB ^= 0xFF;

And pretty much anything you can do with a byte type variable (not quite but most things).