edit the list to make a program ALL ARGUMENTS OF THE FUNCTIONS ARE NEEDED functions: -spos (sets the position of the object) usage: spos <x> <y> -sdir (sets the direction of the object) usage: sdir <direction> -spd (sets the position and the direction of the object) usage: spd <x> <y> <direction> -set (changes the value of the register) usage: set <register> <value> -inc (increases the value of a register) usage: inc <register> -dec (decreases the value of a register) usage: dec <register> -cmp (compare the value of a register with the selected value) usage: cmp <register> <value> -jmp (executes the code at the specified list index) usage: jmp <llist index> -conditional jumps (executes the code at the specified list index using the result from the last cmp executed) je (jump if equal) jne (jump if not equal) jg (jump if grater) jl (jump if less) jng (jump if not grater) jnl (jump if not less) jge (jump if grater or equal) jle (jump if less or equal) jnge (jump if not grater or equal) jnle (jump if not less or equal equal) -tur (turn right by specified amount of degrees) usage: tur <degrees> -tul (turn left by specified amount of degrees) usage: tul <degrees> -mov (moves the object in the direction that it is looking) usage: mov <distance> -movd (moves the object in a specified direction) usage: movd <distance> <direction> -chx (changes the x position of the object) usage: chx <distance> -chy (changes the y position of the object) usage: chy <distance> special values: -reg1 (value of register 1) -cdir (current direction) -cxpos (current x position) -cypos (current y position) registers: -reg1
If you click the flag the red square will start moving. This is coded completely in SCRATCH Assembly. Feel free to copy and use it for your own projects changelog: v.0.0.1 -basic functions -1 register coming soon: -drawing functions -custom function creation