Macros that Take in Parameters

Question: How do I use macros that take in parameters?

 

Answer:

Here is an example using the M8C_EnableIntMask macro. It takes two parameters. INT_MSK0 and INT_MSK0_GPIO are constants defined as E0h and 20h respectively.

Assembly:
M8C_EnableIntMask INT_MSK0, INT_MSK0_GPIO

C:
M8C_EnableIntMask(INT_MSK0, INT_MSK0_GPIO);