Fix typo in tutorial

This commit is contained in:
LagoLunatic
2025-07-17 21:24:44 -04:00
parent 02f5838608
commit ce8a70bfb0
+1 -1
View File
@@ -443,7 +443,7 @@ Next, find where the assembly loads the jump table. It will look something like
.endobj "@7298"
```
Copy the table, and paste it at the top of "Assembly" field in m2c (above the function itself). Then, replace the compiler-generated name (e.g. `@7298`) with the name `jtbl` (both the ones inside the function and the one before jump table itself).
Copy the table, and paste it at the top of "Assembly" field in m2c (above the function itself). Then, replace the compiler-generated name (e.g. `@7298`) with the name `jtbl` (both the ones inside the function and the one before the jump table itself).
Finally, add a new line `.section .data` before the jump table, as well as a new line `.section .text` after the table, before the function. It will look like this:
![Jump table switch assembly for m2c](images/m2c_jump_table_switch.png)