Exactly the same way as before.
On a 16F877, for example, PortA is 6bits. Reading it will return a byte with the state of the port pins in the lower 6 bits, the two high bits will always read zero.
PortE on the 16F877 is only 3bits. Reading it will return a byte with the state of the port pins in the lower 3 bits, the upper 5 bits will always read zero.

If you look at the register summary in the datasheet for the 16F877 (or whatever device you're actually using) it's all pretty clear.

/Henrik.