0 Members and 2 Guests are viewing this topic.
.0:Asm(prgmGRAMMER ;This is the start of the program0→X →Y ;Initiallises the coordinates. Note the space.Repeat A=15 ;A will hold have the keypress, so this checks for [CLEAR]Line(X,Y,6,6,2 ;draws an inverted 8x8 rectangleDispGraph ;updates the LCD screenLine(X,Y,6,6,2 ;Reinverts the rectangle.Repeat A ;Repeats loop until A is not 0getKey→A ;Stores the key code to AEnd ;Ends the Repeat loopX+A=3 -A=2 ;Updates X coordinate based on key press, Result in AnsIf <91 ;If it goes below zero, so this checks for going offscreen!→X ;If it is on screen still, the new value is stored to XY+A=1 -A=4 ;Updates X coordinate based on key press, Result in AnsIf <59 ;Checks if the cursor would be offscreen→Y ;If it is on screen still, the new value is stored to YEndStop ;Ends the program
If C=1 and getKey=105
If C=1 *getKey=9
If C=1 +getKey=9
Repeat getKey=9End
While getKey=0End
3→AWhile A=4<<code that never gets executed>>End
For(A,0,99End
yes, it is.
Send(7,"UBuF ;Creates an AppVarSend(7,"EBuF ;Creates a ProgramSend(7,"FBuF ;Creates a Protected ProgramSend(7,"VBuF ;Creates a Temp Program