Author Topic: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)  (Read 9366 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #15 on: February 27, 2012, 06:37:30 pm »
With the => do you have to use goto's? Or could you simply tell it to do something like Locate blahblablah?
it can be any line. ;)
Sig wipe!

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #16 on: March 01, 2012, 05:51:02 pm »
What is the PRIZM Basic equivalent to "Repeat" in TI-Basic?
I like milk.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #17 on: March 01, 2012, 06:03:41 pm »
What is the PRIZM Basic equivalent to "Repeat" in TI-Basic?
TI-Basic:
Repeat A

Prizm Basic:
While A=0
or:
While Not(A)

(in other words, there isn't a "Repeat" token in Prizm Basic. ;))

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #18 on: March 01, 2012, 06:13:19 pm »
Code: [Select]
:Repeat pxl-Test(Ans,B)=2
How would I do this?
I like milk.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #19 on: March 01, 2012, 06:31:36 pm »
Code: [Select]
:Repeat pxl-Test(Ans,B)=2
How would I do this?
Well, first of all, pxl-Test returns either a 1 or a 0, so that loop would go forever. :P

If you wanted to do something like:
Repeat pxl-Test(Ans,B)=1 (which is the same as doing Repeat pxl-Test(Ans,B))

Then in Casio Basic, the code would look like this:
While pxl-Test(Ans,B)=0
« Last Edit: March 01, 2012, 06:33:02 pm by parser padwan »

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #20 on: March 01, 2012, 06:33:39 pm »
What would happen if it equaled 2(the casio one)? Nevermind......
« Last Edit: March 01, 2012, 06:41:43 pm by Spenceboy98 »
I like milk.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #21 on: March 01, 2012, 06:37:12 pm »
While pxl-Test(Ans,B)=/=2

EdIt: 1one1one p0st.
« Last Edit: March 01, 2012, 06:37:48 pm by parser padwan »

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #22 on: March 01, 2012, 06:46:45 pm »
What is the PRIZM Basic equivalent to "Repeat" in TI-Basic?
I'm pretty sure I mentioned the alternative to Repeat Loop... O.o
Sig wipe!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #23 on: March 01, 2012, 07:35:30 pm »
If you mean a loop that checks at the end instead of at the beginning, use Do/LpWhile.

EDIT: It's all in the first post as Yeong said.




Offline krazylegodrummer56

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-3
    • View Profile
Re: z80 TI-BASIC to PRIZM-BASIC: the BASIC (not the Game)
« Reply #24 on: March 01, 2012, 08:20:09 pm »
AWSOME. *.* just what I wanted. :w00t:
I have a Casio Prizm now! YAY!!! :D