m means port number which can be 0, 1 ..., B, and n is the pin number, which can be 00, 01, ..., 15. P006 means pin 06 of port 0. PFS.P000PFS is the 32-bit register used to configure the function of pin 00 in port 0.
P006 and P005 are used as input signals (push button)
figure addresses of PFS.P006PFS and PFS.P005PFS registers. You should upload your detail work here as picture or Word document.
Mov 8200,Port
Mov 8300,Pin
Mov R1,P006
Mov R2,P005
Mov R0,P006PFS
Mov R3,P006PFS