G.G. (Italy)
8BASIC theory 5/6: Statements II
8BASIC (C) is a BASIC interpreter developed by manufacturer G.G in 2010 for the homemade Z80/AM95 8 bit NANO COMPUTER.
21 "Z=LOG(X)" ; assign to Z the common logarithm (base 10) of X
22 "Z= LN(X)" ; assign to Z the natural logarithm of X
23 "Z= PI " ; assign to Z the PI value
24 "Z=RAD(X)" ; assign to Z the radians value of X degrees
25 "Z=DEG(X)" ; assign to Z the degrees value of X radians
26 "Z=SIN(X)" ; assign to Z the sine of X (radians)
27 "Z=COS(X)" ; assign to Z the cosine of X (radians)
28 "Z=TAN(X)" ; assign to Z the tangent of X (radians)
29 "Z=ASN(X)" ; assign to Z the inverse sine of X
30 "Z=ACS(X)" ; assign to Z the inverse cosine of X
31 "Z=ATN(X)" ; assign to Z the inverse tangent of X
32 "Z=RANDOM" ; assign to Z a random integer number between 0 and 255
33 "T$=STR A" ; assign to T$ the value of variable A converted into the equivalent string
34 " LET A=" ; (two lines statement) set the numeric variable A to the following number
"+0.00000" ; 8BASIC standard numeric format is 6 digits plus sign and decimal dot
35 " LET T$=" ; (two lines statement) set the text variable T$ to the following string
"ABCDEFGH" ; 8BASIC standard string format is 8 chars (alphanumeric and special symbols)
36 "LET B==A" ; assign to variable B the numeric value of variable A
37 "K=INKEY$" ; make a program wait until a key is pressed and assign to K the pressed key
8BASIC theory 5/6: Statements II
8BASIC (C) is a BASIC interpreter developed by manufacturer G.G in 2010 for the homemade Z80/AM95 8 bit NANO COMPUTER.
21 "Z=LOG(X)" ; assign to Z the common logarithm (base 10) of X
22 "Z= LN(X)" ; assign to Z the natural logarithm of X
23 "Z= PI " ; assign to Z the PI value
24 "Z=RAD(X)" ; assign to Z the radians value of X degrees
25 "Z=DEG(X)" ; assign to Z the degrees value of X radians
26 "Z=SIN(X)" ; assign to Z the sine of X (radians)
27 "Z=COS(X)" ; assign to Z the cosine of X (radians)
28 "Z=TAN(X)" ; assign to Z the tangent of X (radians)
29 "Z=ASN(X)" ; assign to Z the inverse sine of X
30 "Z=ACS(X)" ; assign to Z the inverse cosine of X
31 "Z=ATN(X)" ; assign to Z the inverse tangent of X
32 "Z=RANDOM" ; assign to Z a random integer number between 0 and 255
33 "T$=STR A" ; assign to T$ the value of variable A converted into the equivalent string
34 " LET A=" ; (two lines statement) set the numeric variable A to the following number
"+0.00000" ; 8BASIC standard numeric format is 6 digits plus sign and decimal dot
35 " LET T$=" ; (two lines statement) set the text variable T$ to the following string
"ABCDEFGH" ; 8BASIC standard string format is 8 chars (alphanumeric and special symbols)
36 "LET B==A" ; assign to variable B the numeric value of variable A
37 "K=INKEY$" ; make a program wait until a key is pressed and assign to K the pressed key