See the resources in the Keil page and attempt the experiments in the following lab sheet. The link to the PORTSQ.ASM file is here
The pdf of the above lab sheet is available here.