add: exit code to the docs, fix usage in the docs

This commit is contained in:
2025-01-16 09:41:37 +01:00
parent c4f5222672
commit 346aaf0bf5

View File

@@ -84,7 +84,7 @@ The syntax is very close to x86 Intel Assembly. Here is a list of the operands a
| **jna** foo | Jumps to `foo` if `cmp` didn't return `CMP_ABOVE` | no | | **jna** foo | Jumps to `foo` if `cmp` didn't return `CMP_ABOVE` | no |
| **jmp** foo | Jumps to `foo` | no | | **jmp** foo | Jumps to `foo` | no |
| **ret** | Returns from the callee to the caller | no | | **ret** | Returns from the callee to the caller | no |
| **end** | Ends the program | no | | **end** | Ends the program, exit code is EAX | no |
| **pop** a1 | Pops the first element of the stack into a1 | no | | **pop** a1 | Pops the first element of the stack into a1 | no |
| **push** 69 | Pushes the value 69 to the top of the stack | no | | **push** 69 | Pushes the value 69 to the top of the stack | no |
| **call** put | Calls the `put` API | yes/no | | **call** put | Calls the `put` API | yes/no |
@@ -120,7 +120,7 @@ Here is a list of all the errors you can encounter and how to fix them :
* `stack underflow on line X` : you poped to many times without pushing. * `stack underflow on line X` : you poped to many times without pushing.
## Running a script ## Running a script
Usage : `pasm.exe script.pasm`. Usage : `pasm.exe script.pasm [-d/--debug]`.
## Contributing ## Contributing
Please message me over on discord at `_.patate` if you want me to add anything to the docs.<br> Please message me over on discord at `_.patate` if you want me to add anything to the docs.<br>