Skip to content

Latest commit

 

History

History
164 lines (114 loc) · 3.59 KB

docs.md

File metadata and controls

164 lines (114 loc) · 3.59 KB

Click4 Documentation

v31 #b7bd2d5

0: NOP

  • Info: No Operation. :)

  • ShortInfo: nop

  • Args: 0

  • Color: 31,31,31

  • Sound: REST [rest.wav]

1: SET

  • Info: Set contents of register defined by ARG1 with value of ARG2.

  • ShortInfo: *ARG1=ARG2

  • Args: 2

  • Color: 255,0,0

  • Sound: A [A.wav]

2: COPY

  • Info: Copy the contents of register defined by ARG2 to the contents of register defined by ARG1.

  • ShortInfo: *ARG1=*ARG2

  • Args: 2

  • Color: 255,109,0

  • Sound: A# [As.wav]

3: INC

  • Info: Increment register defined by ARG1.

  • ShortInfo: *ARG1=*ARG1+1

  • Args: 1

  • Color: 255,218,0

  • Sound: B [B.wav]

4: DEC

  • Info: Decrement register defined by ARG1.

  • ShortInfo: *ARG1=*ARG1-1

  • Args: 1

  • Color: 182,255,0

  • Sound: C [C.wav]

5: NAND

  • Info: NAND the values of registers defined by ARG2 and ARG3 and store in register defined by ARG1.

  • ShortInfo: *ARG1=*ARG2&*ARG3

  • Args: 3

  • Color: 72,255,0

  • Sound: C# [Cs.wav]

6: CRSZ

  • Info: Increment program counter by 2 if register defined by ARG1 is zero.

  • ShortInfo: *ARG1==0?PC=PC+2

  • Args: 1

  • Color: 0,255,36

  • Sound: D [D.wav]

7: JMP

  • Info: Change program counter to position X[ARG1,ARG2] Y[ARG3,ARG4].

  • ShortInfo: PC=X[*ARG1*16+*ARG2]+Y[*ARG3*16+*ARG4]

  • Args: 4

  • Color: 0,255,145

  • Sound: D# [Ds.wav]

8: RJMP

  • Info: Increment program counter by ARG1 plus 1.

  • ShortInfo: PC=PC+ARG1+1

  • Args: 1

  • Color: 0,255,255

  • Sound: E [E.wav]

9: LOAD

  • Info: Load contents of X[R1+R2], Y[R3+R4] to R0.

  • ShortInfo: R0=X[R*16+R2]+Y[R3*16+R4]

  • Args: 0

  • Color: 0,145,255

  • Sound: F [F.wav]

10: SAVE

  • Info: Save contents of R0 to X[R1+R2], Y[R3+R4].

  • ShortInfo: X[R*16+R2]+Y[R3*16+R4]=R0

  • Args: 0

  • Color: 0,36,255

  • Sound: F# [Fs.wav]

11: INPUT

  • Info: Copy values of WASD or Up, Right, Down, Left into the register defined by ARG1.

  • ShortInfo: *ARG1=INPUT

  • Args: 1

  • Color: 72,0,255

  • Sound: G [G.wav]

12: DRAW

  • Info: Draw area of screen with SourceX[R0+R1], SourceY[R2+R3], Width[R4] plus 1, Height[R5] plus 1, TargetX[R6+R7], TargetY[R8+R9]

  • ShortInfo: Draw X[R0*16+R1],Y[R2*16+R3] with W[R4],H[R5] to X[R6*16+R7],Y[R8*16+R9]

  • Args: 0

  • Color: 182,0,255

  • Sound: G# [Gs.wav]

13: QSND

  • Info: Enqueue sound from register defined by ARG1.

  • ShortInfo: enqueue_sound(*ARG1)

  • Args: 1

  • Color: 255,0,218

  • Sound: ALT1 [alt1.wav]

14: N/A

  • Info: N/A

  • ShortInfo: N/A

  • Args: 0

  • Color: 255,0,109

  • Sound: ALT2 [alt2.wav]

15: N/A

  • Info: N/A

  • ShortInfo: N/A

  • Args: 0

  • Color: 223,223,223

  • Sound: ALT3 [alt3.wav]