here is an example(you can use #A for the A button and so forth...):
@A
SPSET 0,0
SPOFS X,Y
IF BUTTON() AND #UP THEN Y=Y-1
IF BUTTON() AND #DOWN THEN Y=Y+1
IF BUTTON() AND #LEFT THEN X=X-1
IF BUTTON() AND #RIGHT THEN X=X+1
GOTO @A
If you want to use the circle pad, then use this instead of BUTTON()
like this...:
@A
INPUT"FIRST #";A
INPUT"SECOND #";B
INPUT"SIGN";A$
IF A$=="-"THEN PRINT A-B
IF A$=="×" THEN PRINT A*B
IF A$=="+" THEN PRINT A+B
IF A$=="÷" THEN PRINT A/B
GOTO @A