Jump to content



Photo
- - - - -

Lbl


  • Please log in to reply
13 replies to this topic

#1 Mr_Sparkle

Mr_Sparkle

    Casio Fan

  • Members
  • PipPip
  • 32 posts
  • Location:South Australia
  • Interests:Sport<br>Aussie Rules Footy<br>Computers<br>Compuer Games (Medal Of Honor!!)<br>God<br>Graphic Calculator programming

  • Calculators:
    cfx-9850gb plus

Posted 21 June 2004 - 03:53 AM

hey

i was wandering if it is possible to have say: "Lbl 5 and Lbl 5" in the same program
or would if stuff things up??
this is for CFX by the way

thanks

Mr Sparkle B)

#2 huhn_m

huhn_m

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1957 posts
  • Gender:Male
  • Location:Germany / Dresden
  • Interests:Assembler(!!!)
    Computers and Programming
    Operating Systems
    Programmable Calculators
    Maths and everything arround it

  • Calculators:
    FX-82SX / AFX 2.0+ (ROM 1.03) / FX 1.0+ (ROM 1.03)

Posted 21 June 2004 - 04:51 AM

Huh? What do you want to achive with that?

#3 renjer

renjer

    Casio Fan

  • Members
  • PipPip
  • 41 posts
  • Location:Perth, WA
  • Interests:BASIC programming (would like to try MLC but I have no AFX), computer games

  • Calculators:
    cfx-9850gb plus

Posted 21 June 2004 - 06:12 AM

Yup, I tried that before, by accident, the program somehow (randomly?)selects the first lbl 5 then goes to the second one. then I realized that I've been getting the wrong output and I renamed the label.
I was wondering, since the labels can only be named by letters,(Lbl Z), or by numbers (Lbl 4), or in special cases, lbl r and lbl theta, has anyone tried to name their labels like lbl 19 or lbl AA or lbl A1? How will that turn out?

#4 Mr_Sparkle

Mr_Sparkle

    Casio Fan

  • Members
  • PipPip
  • 32 posts
  • Location:South Australia
  • Interests:Sport<br>Aussie Rules Footy<br>Computers<br>Compuer Games (Medal Of Honor!!)<br>God<br>Graphic Calculator programming

  • Calculators:
    cfx-9850gb plus

Posted 21 June 2004 - 06:32 AM

hey

yeah ive tried to put Lbl AA etc but it doesnt work
pity

ive programmed this game and i discovered that it had Lbl 5 and Lbl 5 both in the same program, i havn't noticed anything wrong but there mite not be something coming up properly or something.

i would rename it but im not sure about which Goto goes to which and which to change

thanks

Mr Sparkle B)

#5 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 21 June 2004 - 07:10 AM

heh, as far as i can tell it selects the closest label to the goto. if you want additional programming tips search this forum for "Casio BASIC Tutorial"

#6 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 21 June 2004 - 08:55 AM

you can only specify a lbl with one digit suffix, in other words A-Z, 0-9, r and Theata.

#7 _BW_

_BW_

    Newbie

  • Members
  • Pip
  • 9 posts
  • Location:World&gt;Europe&gt;France&gt;Charente&gt;St Simeux
  • Interests:Programming in Casio and in computer, and studie mathematics

  • Calculators:
    Graph 35, and Graph 100.

Posted 23 June 2004 - 09:19 PM

And if you say two Lbl 5 in the same program, you don't can do that you yant, the Goto 5 redirect to the first or the second by randomly.

If you want to have more Lbl that 38 (A-Z 0-9 tetha...) you can do a second program and in the second program you can do other Labels.

But when zou do a program, you needn't use Lbl and Goto if you want that the program no bug, because you must use in max the If, Do-LpWhile,...

#8 Mr_Sparkle

Mr_Sparkle

    Casio Fan

  • Members
  • PipPip
  • 32 posts
  • Location:South Australia
  • Interests:Sport<br>Aussie Rules Footy<br>Computers<br>Compuer Games (Medal Of Honor!!)<br>God<br>Graphic Calculator programming

  • Calculators:
    cfx-9850gb plus

Posted 24 June 2004 - 11:08 AM

i spose that it could be possible that the guy who programmed this game actually did it on purpose.
ohh well
i figure it out

thanks for all your posts

Mr Sparkle

#9 genesis

genesis

    UCF BASIC Programming Runner Up

  • Super Member
  • PipPipPipPip
  • 281 posts
  • Location:Perth, Australia
  • Interests:Speaking German, computers, defending CFX calculators...

  • Calculators:
    CFX 9850 GB+

Posted 25 June 2004 - 10:34 AM

heh, as far as i can tell it selects the closest label to the goto. if you want additional programming tips search this forum for "Casio BASIC Tutorial"

Actually, it selects the first Lbl in the program, because the Goto command starts a scan for the Lbl from the start. This is why the Lbl command is so slow.

Another use of multiple programs (I've never done this though) is to put a bit of your program across many of them so its easier to handle and faster to edit, so you can put them all together in the end or keep them separate.

Personally, I don't like the r and Theta variables because of their inconsistency with the alphabetic variables and only use them as a last resort or in maths programs involving those variables.

#10 Andy.Davies

Andy.Davies

    Forum Ghost

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1547 posts
  • Gender:Male
  • Location:Dorset, England
  • Interests:Age: 18
    Studying: MEng in cybernetics at Reading uni
    Interests: Progaming (VB, VB.Net, C#, Casio Basic)
    Computers UBBD (Using, Building, Breaking &amp; Destroying)
    Gaming (FPS, RTS, RPG)
    Electronics
    Rock Music (Preferably Loud)
    Riley's (Pool &amp; Snooker Bar)
    Driving (Preferably fast)
    Aikedo (Martial Art)

  • Calculators:
    Algebra FX 2.0 ROM 1.01, FX9750G

Posted 25 June 2004 - 11:26 AM

i use Theata for Pre-Scalers, and r for Delay loops (For -> Next) where the loop does nothing more than create a delay

#11 Mr_Sparkle

Mr_Sparkle

    Casio Fan

  • Members
  • PipPip
  • 32 posts
  • Location:South Australia
  • Interests:Sport<br>Aussie Rules Footy<br>Computers<br>Compuer Games (Medal Of Honor!!)<br>God<br>Graphic Calculator programming

  • Calculators:
    cfx-9850gb plus

Posted 25 June 2004 - 10:44 PM

what do you mean by Pre-Scalers??
and i assume that Delay loops are the same sort of idea as say

Lbl 1
"chicken noodles"
Goto 1

but they are delayed instead of just continueing with no break??

Mr Sparkle B)

#12 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 26 June 2004 - 12:18 AM

something like:

For 1->T To 300
Next

it does nothing but put a slight pause in the program. btw, 300 is my favorite number to delay by ;)

#13 octobclrnts

octobclrnts

    Casio Freak

  • Members
  • PipPipPipPip
  • 145 posts
  • Location:Pennsylvania, United States
  • Interests:Computers<br />Programming languages<br />Artificial Intelligence<br />Music (clarinet)

  • Calculators:
    Casio CFX 9850GB Plus
    Ti-89 Titanium

Posted 26 June 2004 - 03:17 AM

I like 250 better. Not to be contradictory but I just think that it has a very nice feel to it! :nod:

#14 _BW_

_BW_

    Newbie

  • Members
  • Pip
  • 9 posts
  • Location:World&gt;Europe&gt;France&gt;Charente&gt;St Simeux
  • Interests:Programming in Casio and in computer, and studie mathematics

  • Calculators:
    Graph 35, and Graph 100.

Posted 26 June 2004 - 11:57 AM

another method
For 1->A To 10
69!
Next





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users