Author Topic: Getting started in Casio-Basic? You can ask here.  (Read 79150 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #45 on: February 16, 2011, 04:43:43 pm »
One nice tool would be a PRIZM program to txt converter and vice-versa for those who wants to program in Notepad. Personally I prefer programming on a calc rather than the computer, but some people prefer the opposite.

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #46 on: February 17, 2011, 01:44:12 am »
One nice tool would be a PRIZM program to txt converter and vice-versa for those who wants to program in Notepad. Personally I prefer programming on a calc rather than the computer, but some people prefer the opposite.
Doesn't the OS already have that?

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #47 on: February 17, 2011, 01:45:36 am »
Yeah, but it doesn't handle 2 byte characters very well. I don't think that's much of an issue, though, since Notepad would be little better with them.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #48 on: February 17, 2011, 02:53:59 am »
I didn't know the calc itself could convert programs to txt files. Could you tell me how?

EDIT: Nvm, found your answer in another topic
Go into the program menu and scroll the bar over until you see "Save As." Then simply connect to your computer and look in the programs folder.
« Last Edit: February 17, 2011, 03:07:12 am by DJ_O »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #49 on: February 18, 2011, 11:30:31 pm »
Btw, Light_Spirit discovered a special functionality in the Prizm program transfer: When you send a program from an older calc to the Prizm, the Text coordinates are multiplied by 3, to fit the new screen resolution.

http://www.planet-casio.com/Fr/forums/lecture_sujet.php?id=9627&page=1#51753

Offline m1ac4

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 106
  • Rating: +8/-0
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #50 on: March 10, 2011, 07:34:11 am »
I have a question about regression calculations.
What I want to do is when I calculate a statistical regression in a program, I would like to automatically place the resulting equation in a Y= equation of my choice.  What I would do in TI-Basic is this:
Code: (TI-Basic) [Select]
This by default uses L1 and L2 to calculate a linear regression and pastes the resulting equation in Y1
LinReg (ax+b) Y1
How would I do this in Prizm-Basic?

Offline fxdev

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 177
  • Rating: +34/-6
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #51 on: March 17, 2011, 08:10:19 am »
I could not find a way how to do this.

Offline m1ac4

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 106
  • Rating: +8/-0
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #52 on: March 17, 2011, 09:56:56 am »
 :( In that case, I'll just have to store the coefficients to some variables and work with that to get what I want.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #53 on: March 22, 2011, 04:04:17 pm »
Btw in Casio BASIC is it better to use lists or matrices for tilemapping?

Offline m1ac4

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 106
  • Rating: +8/-0
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #54 on: March 22, 2011, 06:24:11 pm »
A concept game I am working on uses both lists and a matrix for tilemapping.  The matrix is 7x21 to represent all of the tiles you can have.  I use a list to store the map data.  Using RLE compression and compressing that further by storing data for two instances of tile and repetition in a single list element, I can generally achieve at least 70% compression.  So to answer your question, using a matrix for uncompressed data would be good but since you are dealing with 147 real #s you would want to compress the data to store it.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #55 on: March 22, 2011, 07:34:50 pm »
Isn't compression very slow, though? ???

Offline m1ac4

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 106
  • Rating: +8/-0
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #56 on: March 22, 2011, 07:41:47 pm »
My estimate for what I did would be about seven seconds to compress and two seconds to decompress.  In this case that delay time is reasonable (drawing the tilemap to the screen takes just over 10 seconds because of the Locate command).
I think a two second lag time to decompress is worth saving around 80% of space in what I am doing.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Getting started in Casio-Basic? You can ask here.
« Reply #57 on: March 22, 2011, 07:43:19 pm »
Well if it's 2 second to decompress I guess it's fine then. Do you have any source code to do that?

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #58 on: March 23, 2011, 01:01:34 am »
I always thought a string was best for tilemapping. But I'm not sure yet what is the equivalent of the sub() for Casio Basic.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline m1ac4

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 106
  • Rating: +8/-0
    • View Profile
Re: Getting started in Casio-Basic? You can ask here.
« Reply #59 on: March 23, 2011, 09:58:01 am »
I think that the StrMid( command would be the equivalent.  Syntax would be StrMid(string,index,length)
@DJ_O: I timed decompression with a stopwatch and it comes out to approximately 3 seconds (I really need to stop observing the run indicator as a timer since perception can be inaccurate).  I can get the source code off of my calc but I don't have the time at the moment (school) and I need include a short explanation with it too.

Edit: I had considered using strings but I have never done this before and I wanted to try storing the data in a separate list file to attempt to prevent the average user from accidentally corrupting it.  I'll have to look into using strings at another time.
« Last Edit: March 23, 2011, 06:41:10 pm by m1ac4 »