Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
22 May, 2013, 06:33:08 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 2 [3] 4 5 ... 8   Go Down
  Print  
Author Topic: Getting started in Casio-Basic? You can ask here. -  (Read 8132 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
fxdev
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 March, 2013, 20:52:08
Date Registered: 18 January, 2011, 16:21:14
Posts: 177

Topic starter
Total Post Ratings: +28

View Profile
« Reply #30 on: 22 January, 2011, 01:19:35 »
0

No, you cannot use a larger font when in graphics mode.
Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 06:18:11
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50213


Total Post Ratings: +2613

View Profile WWW
« Reply #31 on: 22 January, 2011, 08:00:30 »
0

That said, when erasing large portions of the screen, even on a 83+ we used Text( instead of Line(. It was much faster (although we had to use the large fonts for the speed) because it erased 8 lines at once Tongue

That said, I wonder if graphs can be used in BASIC... if the shading is fast enough, maybe that could be a faster way to draw stuff on the screen? (although it can be harder)
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
z80man
Casio Traitor
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 04 September, 2012, 19:42:33
Date Registered: 26 December, 2010, 10:02:50
Location: City 17
Posts: 966


Total Post Ratings: +83

View Profile
« Reply #32 on: 22 January, 2011, 08:48:58 »
0

Graphs can be drawn, but I haven't experiemented with that yet in basic. There is also something called dynamic graphs which are supposed to move or something. Just from the graph menu I was able to get some interesting color effects not normaly availible in basic. Its also relativily fast. Faster than the 83+.  Cheesy
Logged


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)
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Yesterday at 23:45:26
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5642


Total Post Ratings: +589

View Profile
« Reply #33 on: 22 January, 2011, 09:29:51 »
0

Wow that looks neat shocked its already becoming apparent that Casio Basic is different in so many ways than Ti Basic, this thread should really help though, everything is already looking really excelent!
Logged

Ranman
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Last Login: 23 April, 2013, 23:37:04
Date Registered: 16 October, 2008, 23:25:59
Posts: 1390


Total Post Ratings: +78

View Profile
« Reply #34 on: 22 January, 2011, 09:37:03 »
0

I learned how to program Casio BASIC (FX-6300G and FX-7700G) probably 5 years before I bought my first TI graphing calc.
Logged

Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator.  Download available here.
fxdev
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 March, 2013, 20:52:08
Date Registered: 18 January, 2011, 16:21:14
Posts: 177

Topic starter
Total Post Ratings: +28

View Profile
« Reply #35 on: 23 January, 2011, 00:38:40 »
0

You can further speed up drawing by using some of the statistics functions: http://www.casiocalc.org/?showtopic=2078
Logged
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 06:18:11
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50213


Total Post Ratings: +2613

View Profile WWW
« Reply #36 on: 24 January, 2011, 21:21:10 »
0

That's cool. I'll really have to figure out how to actually add shading to my graphs...

@Ranman I got a FX-7000G and 7700GE. The BASIC language on them are similar but the other calc got a bit more RAM. It was the 1st gen BASIC language which has no locate/getkey and graph screen drawing commands. Yet the language gave more freedom than on the TI-Nspire. shocked
« Last Edit: 24 January, 2011, 21:22:18 by DJ Omnimaga » Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
z80man
Casio Traitor
LV8 Addict (Next: 1000)
********
Offline Offline

Gender: Male
Last Login: 04 September, 2012, 19:42:33
Date Registered: 26 December, 2010, 10:02:50
Location: City 17
Posts: 966


Total Post Ratings: +83

View Profile
« Reply #37 on: 27 January, 2011, 08:43:45 »
0

Couple of questions regarding basic. First off how do I take user input. Such as numbers and strings. Second is use of matricies and lists. Mostly on referencing a single index in that matrix or list. Last off is drawing with statistics functions. I tried the example code on casiocalc, but I couldn't get it to run.
Logged


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)
fxdev
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 March, 2013, 20:52:08
Date Registered: 18 January, 2011, 16:21:14
Posts: 177

Topic starter
Total Post Ratings: +28

View Profile
« Reply #38 on: 27 January, 2011, 20:51:44 »
+1

Quote
First off how do I take user input. Such as numbers and strings.

?->A // or "A="?->A
?->A~Z // assign to all variables (except r and theta)
?->Str 1 // input a string
?->List 1 // input a list (use "List ?" or "{?,?,?,...}")
?->Mat A // input a matrix (use "Mat ?" or "[[?,?,...][?,?,...]...]")

There is no way to convert an integer to a string... Sad

Combine '?' and 'Locate':
" " // can be preceded by color commands
Locate 1,1,"Personal Settings:"
"Name="?->Str 1

Question: Does the Prizm's Locate command support color commands (e.g. Green Locate 1,1,...)?

You don't like the '?' command?
Here is a small shell-like program:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ClrText
"_ "->Str 1
Locate 1,1,">> _"
Do:While Getkey // wait for key release
WhileEnd
Do:Getkey // wait for key press
LpWhile Not Ans
StrLeft(Str 1,StrLen(Str 1)-2)->Str 1 // remove underscore
Ans=44=>StrLen(Str 1)=>StrLeft(Str 1,StrLen(Str 1)-1)->Str 1 // [DEL]
Ans=61=>Str 1+" "->Str 1 // [.]
Ans=76=>Str 1+"A"->Str 1 // [X,theta,T]
Ans=66=>Str 1+"B"->Str 1 // [log]
...
Str 1+"_ "->Str 1
Locate 4,1,StrRight(Str 1,19)
LpWhile Ans=/=31 And StrLen(Str 1)<255 // [EXE]
StrLeft(Str 1,StrLen(Str 1)-2)->Str 1 // remove underscore
Prog "PARSE" // start parsing...

Quote
Second is use of matricies and lists. Mostly on referencing a single index in that matrix or list.

{2,2}->Dim Mat A // or [[1,2][3,4]]->Mat A
3->Dim List 1 // or {1,2,3}->List 1

1->Mat A[1,1]
2->Mat A[1,2]
3->Mat A[2,1]
4->Mat A[2,2]

1->List 1[1]
2->List 1[2]
3->List 1[3]
4->List 1[4] // works too!
5->List 1[5] // works when List 1[4] exists!
...

You can also use variables:
1->I
2->List I[2]

Or even strings:
"NICE"->List 1[0] // the so called 'subject name' of a list
2->List "NICE"[2]
List 1[0]->Str 1
3->List Str 1[3]

Unfortunately, neither do string commands work with variables (e.g. Str I) nor does "?->List 1[0]" work.

Workaround for the last one:
?->Str 1
Str 1->List 1[0]

Btw, there is a way to check for empty lists: Cheesy


1
2
3
4
5
6
7
8
9
// EXPECT_SIZE... expected list size (>1)
// MAGIC_NUMBER... some special value
EXPECT_SIZE->List 1[1]
If Dim List 1=/=List 1[1]
Then "Data not found!"
Else If List 1[List 1[1]]=/=MAGIC_NUMBER
Then "Data corrupted!"
Else "Data loaded!"
IfEnd:IfEnd

Quote
Last off is drawing with statistics functions. I tried the example code on casiocalc, but I couldn't get it to run.

I have never used this technique, but the program seems to work for me.
However, there are two small bugs:
(1) Change "Ans=28=>B-10->B" to "Ans=28=>B+10->B"
(2) Add "AxesOff" somewhere at the top

And I also don't like Gotos:
So replace "Lbl 0:Getkey:Ans=0=>Goto 0" with "Do:Do:Getkey:LpWhile Not Ans" and "Goto 0" at the bottom with "LpWhile 1".
« Last Edit: 27 January, 2011, 22:31:24 by cfxm » Logged
AngelFish
This is my custom title
Administrator
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 02:07:40
Date Registered: 15 August, 2010, 09:18:54
Posts: 3188


Total Post Ratings: +218

View Profile
« Reply #39 on: 28 January, 2011, 01:11:26 »
0


Question: Does the Prizm's Locate command support color commands (e.g. Green Locate 1,1,...)?

Yes.
Logged

∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ
fxdev
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 19 March, 2013, 20:52:08
Date Registered: 18 January, 2011, 16:21:14
Posts: 177

Topic starter
Total Post Ratings: +28

View Profile
« Reply #40 on: 28 January, 2011, 01:35:33 »
0

Oh, nice.

So you no longer have to write...
Green " "
Locate 1,1,"Green Text"
...as on the CFX models. Smiley
Logged
AngelFish
This is my custom title
Administrator
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 02:07:40
Date Registered: 15 August, 2010, 09:18:54
Posts: 3188


Total Post Ratings: +218

View Profile
« Reply #41 on: 28 January, 2011, 01:36:06 »
0

Nope. There's also almost no difference in speed either.
Logged

∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 06:18:11
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50213


Total Post Ratings: +2613

View Profile WWW
« Reply #42 on: 28 January, 2011, 03:08:30 »
0

I'm glad we can use matrices that way on the Prizm. This shall be useful for tilemaps.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
bsl
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 22 October, 2012, 03:42:44
Date Registered: 23 February, 2010, 18:14:18
Posts: 148

Total Post Ratings: +11

View Profile
« Reply #43 on: 14 February, 2011, 03:20:20 »
0

Here is a Prizm commands <=> text conversion table.
Works well on the Prizm, except for converting text like @7FF5
It would be nice to get the special symbols off the calculator somehow.

* cmds.zip (9.57 KB - downloaded 47 times.)

* cmdsconversion.bmp (42.22 KB, 388x220 - viewed 292 times.)
« Last Edit: 14 February, 2011, 03:28:53 by bsl » Logged
AngelFish
This is my custom title
Administrator
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Gender: Male
Last Login: Today at 02:07:40
Date Registered: 15 August, 2010, 09:18:54
Posts: 3188


Total Post Ratings: +218

View Profile
« Reply #44 on: 14 February, 2011, 03:24:15 »
0

Oh, yeah. I managed to get all entries in the the special symbols table off of the calc a couple days ago. Here you go. The normal letters are marker symbols so that each line could be easily identified in Text/hex format.


* Q.g3m (0.29 KB - downloaded 55 times.)
* Q.txt (0.63 KB - downloaded 62 times.)
Logged

∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ
Pages: 1 2 [3] 4 5 ... 8   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.356 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.