Please refer to the following websites:
The Immigration Department of the Government of the Hong Kong Special Administrative Region: http://www.immd.gov.hk
Macao Public Security Police Force Immigration Service:http://www.fsm.gov.mo/psp/cht/main.html