Register

Basic Interpreter for 9860

Learn how to program. Code snippets for creating sprites etc. Submit your own or use those of others.
Member
Posts: 48
Joined: Mon Apr 23, 2012 3:58 am
Location: Chennai,India
Calculators: Casio fx-9750 G II, Casio fx-9860G Slim, Casio fx-9860 GII

Basic Interpreter for 9860

Postby nagarajan » Wed May 02, 2012 9:26 am

Hi all,

I downloaded the basic interpreter for my 9860.
I created an example file A.BAS and stored it in the storage memory.

This is my code:

10 INPUT "VALUE A",A
20 B=A+5
30 PRINT "VALUE B";B
40 GOTO 10

This returns with syntax error at line number 10.

Anyone please help me with sample code.

Thanks in advance

Member
User avatar
Posts: 27
Joined: Mon Apr 09, 2012 7:09 pm
Location: France

Postby PierrotLL » Wed May 02, 2012 12:46 pm

I don't know if you can write a string with INPUT.
It work if you only write : 10 INPUT VAR

I'm in trouble too with IF statement, I wrote :
Code: Select all
10 LET X=1
20 IF X=1 THEN PRINT "TRUE" ELSE PRINT "FALSE"
30 PRINT "END"
and I get "Syntax error line 201" :confused:

Member
Posts: 48
Joined: Mon Apr 23, 2012 3:58 am
Location: Chennai,India
Calculators: Casio fx-9750 G II, Casio fx-9860G Slim, Casio fx-9860 GII

Postby nagarajan » Wed May 02, 2012 1:59 pm

PierrotLL wrote:I don't know if you can write a string with INPUT.
It work if you only write : 10 INPUT VAR

I'm in trouble too with IF statement, I wrote :
Code: Select all
10 LET X=1
20 IF X=1 THEN PRINT "TRUE" ELSE PRINT "FALSE"
30 PRINT "END"
and I get "Syntax error line 201" :confused:


The string is used to identify what input we are giving.
In other basic compiler it worked.
The readme file says that it won't support relational operators.
There are no = > < <= >= symbols listed in the readme file.
The author only should help us.

Return to Tutorials & Code Snippets

Who is online

Users browsing this forum: No registered users and 2 guests