How do I create a procedure in an Renesas M32R ISA? how do I call it and how do I return it? There aren't many documentation on this ISA on the internet. Is it the same as Arm's procedure call?
Asked
Active
Viewed 65 times
1
-
1The instruction set reference [is readily available on Renesas' website](https://www.renesas.com/eu/en/products/microcontrollers-microprocessors/m32r/m32r-ecu/32185.html#documents) (filter on "User's Manual: Software" to make it easier to find). – Michael May 08 '19 at 06:03
1 Answers
0
You can create a procedure as:
my_funct:
<instruction>
Call this procedure using Branch and link (bl).
BL my_func
BL causes an unconditional branch to the address specified by the label and puts the return address in R14.
See Chapter3 of https://www.renesas.com/eu/en/doc/products/mpumcu/001/rej09b0112_32fpusm.pdf

Stoogy
- 1,307
- 3
- 16
- 34