Stack Arithmetic in Jasmin

Using only the load and store instructions described in Data Control in Jasmin and the arithmetic and logic instructions described in Arithmetic and Logic in Jasmin, translate the following Java expressions into sequences of Jasmin instructions that store the final result in locals[2].

1. 32 * (14 + 5) – 8

2. 32 * 14 + 5 - 8

3. 100L + 99L + 98L + 97L

4. 3.14F * (10.0F)2

5. 3.5 / 9.86 / 2.1

6. 42 & 51 >> 3

7. 25 | 15 & -2 ^ 16

8. 2L * 15/4

9. 3.14F * 182

10. 'a' + 3.0