Jump to content



Photo
- - - - -

Inside Casio Basic is now to be prepared

Casio Basic C.Basic

  • Please log in to reply
9 replies to this topic

#1 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 02 December 2016 - 05:31 AM

i've been posted details of Casio Basic in Japanese at a blog service.

http://egadget.blog.fc2.com/

 

To release those info I've been working on compile and posted those in English. Unfortunately it's still long way to be completed.

http://egadget2.web....om/index_e.html

 

About 1 year ago we started C.Basic Project, a new project with my friend sentaro21.

This is very nice and fast Basic interpreter, almost compatible with Casio Basic, but much faster and has more extended commands and function.

 

Our goal is Casio Basic compiler, C:Basic (one more dot than C.Basic).

 

http://egadget2.web....nterpreter.html

 

http://egadget.blog....-entry-529.html

 

 

I have coded Conway's game of life to demonstrate how nice the C.Basic is.

http://egadget2.web....me_of_Life.html

 

 

Making Manual and Command Reference in English has just started, will take more and more time.

 

http://egadget.blog....-entry-529.html

At this moment all the commands and features are not covered, but this might help you some...

 

Just for introduction of preliminary project...


Edited by Krtyski, 15 December 2016 - 01:47 AM.


#2 Cakeisalie5

Cakeisalie5

    Newbie

  • Members
  • Pip
  • 7 posts
  • Gender:Male

  • Calculators:
    fx-9750GII-2
    fx-9860GII-2

Posted 02 December 2016 - 10:52 AM

Hi, nice project! Sad that everything is hardcoded though. (I know it's usual in CASIO projects, but yet, it makes me sad.)

 

I'm making a reference of all FONTCHARACTER chars (the one that Basic uses, as the other applications on the calculator), so I was wondering which characters were extended (there's no comment about that in the source, or I missed it), and where the opcode<->str translation was (are you using the corresponding syscalls, and is OpCodeStrList only for extended characters, or...?).

 

Thanks in advance.



#3 Viliami

Viliami

    Casio Addict

  • Moderator
  • PipPipPip
  • 98 posts
  • Gender:Male
  • Location:New Zealand
  • Interests:C++ - OpenGL,SDL
    Python - Pygame
    Java - SFML
    C - Casio SDK

  • Calculators:
    FX-9750 GII upgraded to FX-9860 GII

Posted 03 December 2016 - 04:19 AM

Awesome, this looks a lot faster than the normal CASIO BASIC interpreter.



#4 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 03 December 2016 - 08:53 AM

I'm making a reference of all FONTCHARACTER chars (the one that Basic uses, as the other applications on the calculator), so I was wondering which characters were extended (there's no comment about that in the source, or I missed it), and where the opcode<->str translation was (are you using the corresponding syscalls, and is OpCodeStrList only for extended characters, or...?).

 

 

Hi, Cakeisalie5

 

I'm not sure I correctly understand what you mean.

 

If you want to know about C.Basic, at this moment please check source code of C.Basic which is provided with Add-in files in one ZIP file.

 

If you have some difficulty about g1m files, that is Casio Basic file. So just import the file to fx-9860GII then you see the code and caption.

 

You can download source of Conway's game of life and this zip file includes also text files. This text files also can be imported to C.Basic program list. C.Basic has a function to transfer g1m file to text file. This is what the included text files are.

 

C.Basic project has a concept that every necessary tasks can be done on only Casio calcs, so we think it's OK that all the files can be handles and checked on our calc. We do not pay attention so much those files is handled in PC.

 

If I miss your point, sorry.


Edited by Krtyski, 03 December 2016 - 09:10 AM.


#5 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 03 December 2016 - 09:09 AM

Awesome, this looks a lot faster than the normal CASIO BASIC interpreter.

 

Hi, Viliami

 

I think you reviewed a demonstration video of Conways game of life.

 

Let me introduce other nice game program, DRAGON. One of C.Basic fan, Ganot created this game.

 

A dragon flies and by any key press flying derection of the dragon is changed (up or down). Dragon is killed by hitting to blocks or mountains. You have 3 bombs and pressing [0] key let you fire the bomb to destroy blocks and mountains.

 

This looks very easy at first but it is getting more an more dificult to kepp the dragon alive..  

 

Audio of the video for explanation is in Japanese, but not for Japanese speakers I think the video tells how nice C.Basic is.

 

Its source code can be downloaded;

https://dl.dropboxus...0gii/DRAGON.zip

 

This program uses extended function of C.basic, so does not run on original Casio Basic.

 

In tha last part of this video he also introduced his 3D Maze Game.

The source of the game can be downloaded;

https://dl.dropboxus...MAZE_Sample.zip

 

 

 

Thanks


Edited by Krtyski, 04 December 2016 - 10:49 AM.


#6 Viliami

Viliami

    Casio Addict

  • Moderator
  • PipPipPip
  • 98 posts
  • Gender:Male
  • Location:New Zealand
  • Interests:C++ - OpenGL,SDL
    Python - Pygame
    Java - SFML
    C - Casio SDK

  • Calculators:
    FX-9750 GII upgraded to FX-9860 GII

Posted 04 December 2016 - 06:53 AM

Cool, I just saw the 3D maze game running on Casio Basic and it was slow. The C.basic version is a lot faster.

 

Good to see the huge performance boost.



#7 sentaro21

sentaro21

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 369 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 04 December 2016 - 02:05 PM

Hi,Krtyski
I'm always thankful for your help. :bow:
 
 
 
Hi,Cakeisalie5
 
I'm sorry for not explaining well enough.
The extended command in C.Basic does not function by other application.
OpCodeStrList is a list of extended command in C.Basic, but Casio Basic command exists, too.
It is because an emulator of SDK does not support a command of new Casio Basic ( ver.2.00~ ).
 
Casio Basic opcode<->str translation was using syscall.
The extended opcode<->str translation was using added original program.
 
 
 
Hi,Viliami
Thank you for trying a program. :D
 
I will do my best to be completed project as soon as possible.


#8 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 15 December 2016 - 01:54 AM

Hi sentaro21 & everyone

 

Based on your documents in Japanese, I've been working on making "C.Basic English Web Manual".

 

Here is top page for C.Basic;

http://egadget2.web....nterpreter.html

 

 

Web structure is now decided, then I just cut & paste your documents in there, so expediting translation to English.

 

I hope to complete by 17th Jan 2017.


Edited by Krtyski, 15 December 2016 - 05:59 AM.


#9 DJ Omnimaga

DJ Omnimaga

    Casio Freak

  • Members
  • PipPipPipPip
  • 123 posts
  • Gender:Male
  • Location:Quebec (Canada)

  • Calculators:
    TI-82 Advanced Edition Python
    TI-84+
    TI-84+CSE
    TI-84+CE
    TI-89T
    cfx-9940GT
    fx-7400G+
    fx 1.0+
    fx-9750G+
    fx-9860G
    fx-CG10
    HP 49g+
    HP 39g+
    HP 39gs
    HP 39gII
    HP Prime G1
    HP Prime G2
    Sharp EL-9600C

Posted 08 January 2017 - 11:14 PM

This looks promising. I mostly program on TI calculators but I use TI-BASIC so learning Casio BASIC was easy for me. What turned me off from Casio programming is that the official BASIC interpreter was slow and there is no Windows-compatible BASIC editor. Now that I know that someone has made a new BASIC interpreter that runs much faster, maybe that could motivate me to get back into Casio programming. Good job so far on this. :)



#10 Krtyski

Krtyski

    Casio Freak

  • Members
  • PipPipPipPip
  • 132 posts
  • Gender:Male
  • Location:Tokyo, Japan
  • Interests:programming, smooth Jazz and 4-wheel driving.

  • Calculators:
    FX-502P, FX-602P, FX-603P,
    fx-4000P, fx-7000G,
    fx-4500P, fx-4800P
    fx-5800P,
    CFX-9850G,
    CFX-9850GC PLUS
    fx-9860G,
    fx-9860G AU,
    fx-9860G Slim
    fx-9860GII SD,
    fx-9860GII-2,
    fx-9860GII-2 SD,
    fx-CG20, fx-CG50,
    fx-CP400
    fx-9860GIII
    fx-9750GIII
    fx-7400GIII

Posted 18 January 2017 - 01:07 AM

Hi DJ Omnimaga

 

This looks promising. I mostly program on TI calculators but I use TI-BASIC so learning Casio BASIC was easy for me. What turned me off from Casio programming is that the official BASIC interpreter was slow and there is no Windows-compatible BASIC editor. Now that I know that someone has made a new BASIC interpreter that runs much faster, maybe that could motivate me to get back into Casio programming. Good job so far on this. :)

 

I'm glad to hear you have now good impression on C.Basic. 

Please try C.Basic, a new fast BASIC interpreter. If you have created Casio Basic in g1m file, please run this in C.Basic without no modification. 

 

I posted "C.Basic - International Release" yesterday.







Also tagged with one or more of these keywords: Casio Basic C.Basic

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users