Nobody initializes pins using assembler! Configure the pins at design-time or use C-language when reconfiguring at run-time is required.
What do you think they invented C for?
You must be working for another semiconductor company to drive people away using Cypress controller ;-)
But I guess we need to go for another controller like Infineon or TI
... and you are sure that the above code will work without modification even when you switch from one PSoC to another? I do not understand why you are using assembly language. What are the benefits??