G.G. (Italy)
8BASIC theory 4/6: Statements I
8BASIC (C) is a BASIC interpreter developed by manufacturer G.G in 2010 for the homemade Z80/AM95 8 bit NANO COMPUTER.
STATEMENTS
8BASIC consists of 51 fixed-format statements.
During editing you can change any of the 26 letters of each variable in any of the 51 statements.
1 "IF A>B:N" ; jump to line label N if A is greater than B
2 "IF A=B:N" ; jump to line label N if A is equal to B
3 "IFAB:N" ; jump to line label N if A is not equal to B
4 "IFA>=B:N" ; jump to line label N if A is greater than or equal to B
5 " "N": " ; line label N marking the destination of a GoTo/GoSub statement
6 "GO TO N " ; jump unconditionally to line label N
7 "GO SUB N" ; temporarily jump to line label N and returning to the following line
8 "RETURN " ; jump back to the statement following the original GOSUB statement
9 " END " ; terminate the execution of the program and suspends CPU operation
10 "Z=X+Y " ; add X and Y and assign the result to Z
11 "Z=X-Y " ; subtract Y from X and assign the result to Z
12 "Z=X*Y " ; multiply X and Y and assign the result to Z
13 "Z=X/Y " ; divide X by Y and assign the result to Z
14 "Z=SQR(X)" ; assign to Z the square root of X
15 "Z=INT(X)" ; assign to Z the integer of X
16 "Z=ABS(X)" ; assign to Z the absolute value of X
17 "Z=NEG(X)" ; assign to Z the value of X and change sign of Z
18 "Z=SGN(X)" ; assign to Z the sign function of X
19 "Z= (X)^Y" ; assign to Z the result of X raised to the power of Y
20 "Z=EXP(X)" ; assign to Z the result of e raised to the power of X
8BASIC theory 4/6: Statements I
8BASIC (C) is a BASIC interpreter developed by manufacturer G.G in 2010 for the homemade Z80/AM95 8 bit NANO COMPUTER.
STATEMENTS
8BASIC consists of 51 fixed-format statements.
During editing you can change any of the 26 letters of each variable in any of the 51 statements.
1 "IF A>B:N" ; jump to line label N if A is greater than B
2 "IF A=B:N" ; jump to line label N if A is equal to B
3 "IFAB:N" ; jump to line label N if A is not equal to B
4 "IFA>=B:N" ; jump to line label N if A is greater than or equal to B
5 " "N": " ; line label N marking the destination of a GoTo/GoSub statement
6 "GO TO N " ; jump unconditionally to line label N
7 "GO SUB N" ; temporarily jump to line label N and returning to the following line
8 "RETURN " ; jump back to the statement following the original GOSUB statement
9 " END " ; terminate the execution of the program and suspends CPU operation
10 "Z=X+Y " ; add X and Y and assign the result to Z
11 "Z=X-Y " ; subtract Y from X and assign the result to Z
12 "Z=X*Y " ; multiply X and Y and assign the result to Z
13 "Z=X/Y " ; divide X by Y and assign the result to Z
14 "Z=SQR(X)" ; assign to Z the square root of X
15 "Z=INT(X)" ; assign to Z the integer of X
16 "Z=ABS(X)" ; assign to Z the absolute value of X
17 "Z=NEG(X)" ; assign to Z the value of X and change sign of Z
18 "Z=SGN(X)" ; assign to Z the sign function of X
19 "Z= (X)^Y" ; assign to Z the result of X raised to the power of Y
20 "Z=EXP(X)" ; assign to Z the result of e raised to the power of X