Pasm is a project designed to provide a user-friendly alternative to emulators like Johny, which can be challenging to use due to its graphical user interface (GUI). In this project, we've eliminated the GUI and introduced several useful instructions for debugging purposes. We hope you find it helpful and enjoyable.
-
var [name] [value]
: Create a new variable with the specified name and initial value. -
inc [variable]
: Increment the value of the specified variable by one. -
dec [variable]
: Decrement the value of the specified variable by one. -
tst [variable]
: If the variable's value is equal to 0, jump to the next next line; otherwise, jump to the next line. -
jmp [line]
: Jump to the specified line number. -
print [variable]
: Print the current value of the specified variable to the console.
python3 pasm.py <file> <log_level>
Feel free to use these instructions to debug and analyze your code effectively. Enjoy using pasm!