From 346aaf0bf5fbc987ff52aa3059ed2c1ac5978da8 Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Thu, 16 Jan 2025 09:41:37 +0100 Subject: [PATCH] add: exit code to the docs, fix usage in the docs --- docs/documentation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/documentation.md b/docs/documentation.md index a32a5af..9740cbc 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -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.