add: exit code to the docs, fix usage in the docs
This commit is contained in:
@@ -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 |
|
||||
| **jmp** foo | Jumps to `foo` | 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 |
|
||||
| **push** 69 | Pushes the value 69 to the top of the stack | 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.
|
||||
|
||||
## Running a script
|
||||
Usage : `pasm.exe script.pasm`.
|
||||
Usage : `pasm.exe script.pasm [-d/--debug]`.
|
||||
|
||||
## Contributing
|
||||
Please message me over on discord at `_.patate` if you want me to add anything to the docs.<br>
|
||||
|
||||
Reference in New Issue
Block a user