Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +------------------+
- |PASM DOCUMENTATION|
- +------------------+
- $ # <Some text>
- A coment, this line is skipped and not interpretted
- $ FUNC <name> <args> ... ENDF
- A user defined function. in the function call the arg by putting its name not in quotes. Only supports 1 custom argument.
- $ UF <name>
- Call a user defined function
- $ PUSH <value or register name>
- Push a given value or a registers value onto the stack
- $ POP <register name>
- pop a value off the top of the stack into a given register
- $ MOV <value or register name> <register name>
- Move the value of the first argument into the register of the second argument
- $ JE <value or register name> <value or register name> <Line Number>
- If the valuse from the 2 arguments are equal then the IP (Instruction Pointer) jumps to the specified line number
- $ JN <value or register name> <value or register name> <Line Number>
- If the valuse from the 2 arguments are not equal then the IP (Instruction Pointer) jumps to the specified line number
- $ JGT <value or register name> <value or register name> <Line Number>
- If the value from the 1st argument is greater-than that of the 2nd then the IP (Instruction Pointer) jumps to the specified line number
- $ JLT <value or register name> <value or register name> <Line Number>
- If the value from the 1st argument is less-than that of the 2nd then the IP (Instruction Pointer) jumps to the specified line number
- $ INT <interupt code>
- Execute the function of the given interupt code (Codes are documented in the source)
- # Print a string
- FUNC PS str
- PUSH A
- MOV A str
- INT 80
- POP A
- ENDF
- # Prints out 'Hello world!'
- PS 'Hello world!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement