Jump to content



Photo
- - - - -

Game Help (problem)


  • Please log in to reply
3 replies to this topic

#1 lapytopy

lapytopy

    Newbie

  • Members
  • Pip
  • 2 posts

  • Calculators:
    Casio fx-9750 PLUS

Posted 19 May 2010 - 09:33 AM

Norm
Lbl 0
0->T
ClrText
Intg 18Ran#+2->A
6->B
Intg 2Ran#+1->C
2->D
A->E
Do
Do
ClrText
Locate A,B,"."
Locate E,7,"..."
B=7=>D<>2=>Goto 1
C=1=>Isz A
D=1=>Isz B
C=2=>Dsz A
D=2=>Dsz B
B=7=>A>=E=>A<=E+2=>2->D
B=7=>Isz T
B=1=>1->D
A=1=>1->C
A=21=>2->C
Getkey
LpWhile Ans=0
Ans=27=>3+E->E
Ans=38=>E-3->E
E>=20=>19->E
E<=0=>1->E
LpWhile A>=0
Lbl 1
Locate 7,4,"SCORE"
Locate 7,5,T_				// the little black Disp triangle
Goto 0

I am getting syn error on this line:
Locate A,B,"." on the A ' << A comer help please!

I am using the Casio fx-9750G PLUS calculator

Edited by lapytopy, 19 May 2010 - 09:35 AM.


#2 Martin

Martin

    Casio Freak

  • Members
  • PipPipPipPip
  • 121 posts
  • Gender:Male
  • Location:Praha
  • Interests:asm on cfx9850

  • Calculators:
    fx82l
    fx7700GB
    cfx9850G
    TI92
    fx9860G SD
    Rheinmetall KEL IIc
    H. W. Ebmeyer - Tarema
    fx cg20

Posted 19 May 2010 - 12:33 PM

I am getting syn error on this line:
Locate A,B,"." on the A ' << A comer help please!
I am using the Casio fx-9750G PLUS calculator


What are the values of A & B after error ?

#3 lapytopy

lapytopy

    Newbie

  • Members
  • Pip
  • 2 posts

  • Calculators:
    Casio fx-9750 PLUS

Posted 20 May 2010 - 06:39 AM

What? I am not sure what you mean. It is just as shown by the code.

#4 kucalc

kucalc

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1422 posts
  • Gender:Male
  • Location:USA
  • Interests:Programming: C/C++, Fortran, LISP, COBOL 85 Standard, PHP, x86 and SH3 Assembly

    Computer graphics

  • Calculators:
    fx-9860G / fx-7400G Plus / Algebra FX 2.0+ / fx-9770G / CFX-9850G / CFX-9850GB+ / TI-89 / TI-nSpire

Posted 20 May 2010 - 11:23 PM

Martin is asking what are the values of A and B, because they might be illegal values that won't work in Locate (ex: fractions, negative or out of range).

After running the program and when it crashes, go back to RUN mode (through the MENU) and type in A and see what's stored. Check also what's in B.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users