The official Pysembly Documentation can be found by running a program with the code 'help':
code = ['help']
exec(open(pysembly4/pysembly4.py())
or in environment:
help
or preinstalled app 2.
The code structure is detailed in the example program provided with the official download.
Here is a copy of the documentation:
/pysembly4/: instruction guide
store [#] - appends following value to memory
store v[#] - appends value at memory address # to memory
store inp {text} - appends prompted value to memory, prompt given to user by text
recall [#] - recalls value at memory address #
see above for variants
increment [#] - increments value at memory address #
see above for variants
decrement [#] - decrements value at memory address #
see above for variants
add [#1] (newline) [#2] - adds second number to value at first address
see above for variants
subtract, multiply, and divide are equivalent syntactically
showmemory - shows memory
showcode - shows code
jump [#] - jumps to line # in code
see above for variants
delete [#] - deletes value at memory address #, shifting all further memory addresses by 1
quit - exits program
wait [#] - waits # seconds
see above for variants
if [#1] (newline) {>} (newline [#2] (newline) [#3] - tests if #1 passes operator with regard to #2. #3 is the number of lines to skip if if fails.
see above for variants
available operators: >, <, =, !, >=, <=
repeat [#1] (newline) [#2] - repeats #2 instructions #1 times
see above for variants
lines [#1] (newline) [#2] - jumps to line #1, runs #2 operations, and jumps back to continue program
psmb4 [code] - runs pysembly4 code in [code] delimited with ~
see above for variants
overwrite #1 (newline) #2 - overwrites value at given memory address #1 with provided value #2
see above for variants
concatenate # (newline) [TEXT] - concatenates value in [TEXT] to memory address #
see above for variants
split #1 (newline) #2 (newline) #3 - extracts the section of the value at memory address #1 starting at character #2 and ending at character #3
see above for variants
<&&> - equivalent to newline
/pysembly4/: environment commands
0 - application editor
then filename, then filecode
1 - application code viewer
-1 - application deleter
exit - exit environment
2 - help
3 - first user program
etc.