Seuls les membres ayant 30 points peuvent parler sur le chat.

Forum Casio - Projets de programmation


Index du Forum » Projets de programmation » C.Basic Projets
Sentaro21Hors ligneMembrePoints: 711 Défis: 0 Message

C.Basic Projets

Posté le 30/04/2017 11:08

Hello, everyone.

I am Sentaro21, and I am developing C.Basic, a Basic interpreter that allows high-speed execution of Basic programs while maintaining compatibility with genuine Casio Basic.

Here is an English site, by Krtyski, about the C.Basic project (I helped him with the translation, but it's still unfinished) :
https://egadget2.web.fc2.com/CBasic/Interpreter/CBasic_interpreter.html

The articles and various programs from this site served as a reference to evaluate the compatibility level of C.Basic. Results were not good every time I tested them, but compatibility increased over time.

These programs have been ported experimentally. Many thanks to their authors.

Block Tower (C.Basic version)
https://pm.matrix.jp/CB/CB_BlockTower.zip

Sudoku (C.Basic version)
https://pm.matrix.jp/CB/CB_Sudoku.zip

Maze Generator (C.Basic version)
https://pm.matrix.jp/CB/CB_MazeGene.zip

Graph 3D (C.Basic version)
https://pm.matrix.jp/CB/CB_Graph3D.zip

TokiTori (C.Basic version 25/11/2018)
https://pm.matrix.jp/CB/CB_Tokitori.zip
(added Save/Load feature)

Ice slider (C.Basic version 25/11/2018)
https://pm.matrix.jp/CB/CB_IceSlider.zip
(added Save/Load feature)

Clonelab (C.Basic version 25/11/2018)
https://pm.matrix.jp/CB/CB_Clonlab.zip
(added Save/Load feature)

Arkenstone (C.Basic version 25/11/2018)
https://pm.matrix.jp/CB/CB_Arkenstone.zip
(added Save/Load feature)

Aventura (C.Basic version 25/11/2018)
https://pm.matrix.jp/CB/CB_Aventura.zip
(added Save/Load feature)

Electricity (C.Basic version 10/2/2019)
https://pm.matrix.jp/CB/CB_Electric.zip
(added Save/Load feature)

Here are examples of programs that reach near-C performance :

BallGame (C.Basic version)
https://pm.matrix.jp/CB/CB_BallGame.zip

Asprin (C.Basic version)
https://pm.matrix.jp/CB/CB_Aspirin.zip


The C.Basic project is still yet to be completed, thus I would like to get your feedback.

This is the latest version of C.Basic 2.44 beta6 for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC244beta6.zip (updated 24/1/2020)

This is the latest version of C.BasicCG 1.44 beta6 for Graph90+E/fx-CG10/20/50:
https://pm.matrix.jp/CB/CBASICCG144beta6.zip (updated 24/1/2020)

C.Basic manuals
https://gitlab.com/sentaro21/cbasic

Currently C.Basic exists thanks to this site.
Thank you very much.


Pages : Précédente1 ... , 17, 18, 19, 20, 21, 22, 23, 24Suivante
RedcmdEn ligneMembrePoints: 213 Défis: 5 Message

Citer : Posté le 21/11/2019 09:23 | #


just a single character
RedCMD#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Sentaro21Hors ligneMembrePoints: 711 Défis: 0 Message

Citer : Posté le 21/11/2019 09:29 | #


Ok!
I was able to confirm it. Thanks!

Ajouté le 21/11/2019 à 12:11 :
Here is new updated version.

2.38 beta for for 9860G/GII series/Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC238beta.zip
-Fixed the editor bug that the screen is shifted down when pasting on the 6th line when the upper status bar is displayed in the editor.

1.38 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG138beta.zip

--Same update--
-Fixed the bug that the order of files with period characters in the name was reversed.
-Fixed the editor bug that could not be edited when the stored cursor position was after the end of the file.
-Fixed the RclPict bug that full 2KB Pict loading from storage memory.


Ajouté le 29/11/2019 à 08:43 :
Here is new updated version that fixes the remaining bugs.

2.39 beta for for 9860G/GII series/Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC239beta.zip

1.39 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG139beta.zip
-Fixed the bug that the height specification was invalidated by Locate/LocateYX command.

--Same update--
-Fixed the problem that [EXIT] does not cancel the debug mode when the Help function is enabled.
-Fixed a bug when using List as an argument in the DrawGraph command.
-The error message "Withot" has been changed to "w/o".
Je continue à développer C.Basic. (Il est compatible avec Basic Casio.)
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
KikoodxHors ligneMembrePoints: 1749 Défis: 9 Message

Citer : Posté le 29/11/2019 08:54 | #


Hello!
I want to point out a difference between C.Basic and Basic Casio I noticed during the day I used it.
This code work in Basic Casio but make an error occur in C.Basic (2.38 beta)
"
TEXT"→Str 1

Casio consider than the line break is a part of the string.
Sentaro21Hors ligneMembrePoints: 711 Défis: 0 Message

Citer : Posté le 29/11/2019 09:13 | #


Thanks!
I confirmed it.
I will try to fix it.

Ajouté le 29/11/2019 à 09:41 :
It didn't work if the string was at the beginning of the program.
So I fixed it.
Please re-download 2.39 / 1.39.

Ajouté le 30/11/2019 à 02:18 :
Newly found that there is a problem with the line break and escape in strings.
It will be fixed in the next update.
Je continue à développer C.Basic. (Il est compatible avec Basic Casio.)
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
CalcloverhkHors ligneMembrePoints: 68 Défis: 0 Message

Citer : Posté le 30/11/2019 23:17 | #


Hi all C.Basic ethusiasts

Thanks to everyone's support, the C.Basic Chinese Help Center are opened up for chatting and updates.
https://www.cncalc.org/thread-24320-1-1.html/
Which means Guide_CN is planned to be included in C.Basic ZIP package.

Cheers
CalcLoverHK
2045, the bright or dark future to the humans?
Sentaro21Hors ligneMembrePoints: 711 Défis: 0 Message

Citer : Posté le 01/12/2019 03:59 | #


Thanks @Calcloverhk
I hope it will be used in China.

Here is new fixes & re-updated.
Thanks to @Lephenixnoir for finding the ViewWindow initialization bug.

1.39 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG139beta.zip (re-uploaded)
-Fixed the bug that ViewWindow was not initialized at initial startup.




Je continue à développer C.Basic. (Il est compatible avec Basic Casio.)
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
LephenixnoirEn ligneAdministrateurPoints: 16808 Défis: 140 Message

Citer : Posté le 01/12/2019 09:53 | #


Ha ha, you really are able to find bug reports at unexpected places. Good to know I have been of some use!

Also Palpatine_78, I hope you update your C.Basic regularly
Sentaro21Hors ligneMembrePoints: 711 Défis: 0 Message

Citer : Posté le 01/12/2019 11:29 | #


The ViewWindow bug was fatal because it would cause an error on initial startup.
That was a really big help.

I'ill continue to look for signs of errors everywhere.
And keep updating.
Je continue à développer C.Basic. (Il est compatible avec Basic Casio.)
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
LightmareHors ligneMembre de CreativeCalcPoints: 546 Défis: 0 Message

Citer : Posté le 01/12/2019 12:45 | #


hello ! i'm working with the fxCG version of C.Basic, and i don't understand how to precisely use the Transp-Color command. I don't know how to get the 16 bit color ID on a bmp sprite.
42
Sentaro21Hors ligneMembrePoints: 711 Défis: 0 Message

Citer : Posté le 01/12/2019 13:13 | #


After displaying BMP on the screen, you can get the color code by _PixelTest().
Or you can get directly from the bitmap data transferred to Mat.

Related Links
https://www.planet-casio.com/Fr/forums/topic14738-6-c-basic-projets.html#162484


Ajouté le 03/12/2019 à 12:55 :
I'm sorry. Due to the 1.39 update, saving the cursor position in the editor did not work.
Please re-download.
1.39 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG139beta.zip (re-uploaded)

Ajouté le 06/12/2019 à 09:42 :
Here is new updated version.

2.40 beta for for 9860G/GII series/Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC240beta.zip
-Change the specification of editor that the maximam number of stored cursor position has been increased from 7 to 16.

1.40 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG140beta.zip
-Change the specification of editor that the maximam number of stored cursor position has been increased from 16 to 32.

--Same update--
-Changed the specification that the timing of reading a subprogram is not when the program starts but when the Prog command is executed.
As a result, the Prog command with a string variable as an argument is executed without restriction..
-Fixed the bug when escape characters "\" and line break "CR" are included in the string.
-Added specification that "\n" can be used as line break.
-Improved error messages.

-Added the argument of Beep command that List can be used.
(Format) Beep List 1(Hz), List 2(Length)
(Example) {1000,2000,3000}-> List 5
{250,500,250}-? List 7
Beep List 5, List 7

Je continue à développer C.Basic. (Il est compatible avec Basic Casio.)
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
CalcloverhkHors ligneMembrePoints: 68 Défis: 0 Message

Citer : Posté le 14/12/2019 06:44 | #


Progress of C.Basic User's Guide Project
   52%

Last updated at 2019/12/25 UTC+8
*Released Guide_EN
*Splitted Guide_EN to GuideCG_EN and (incomplete) GuideFX_EN
------------------------------------
Hi all C.Basic enthusiasts

It is time for me to announce more details of C.Basic User's Guide Project.

Development

Pre-stage development: 2019/9/8 - 2019/10/2 (10/10 progress)
*Small-scale improvement on content
*Fixed some typos and grammar
*Uses .txt to edit and publish

First stage development: 2019/10/3 - 2019/12/23 (40/40 progress)
*Large-scale improvement on command reference
*Layout, design, grammar, expression improvement
*Estimated to release the initial version of Guide_EN before the end of 2019
*Uses .docx to edit and .pdf to publish

Second stage development: 2019/12/23 - ? (2/40 progress)
***Split Guide_EN into GuideFX_EN and GuideCG_EN
*Wait for the release of Guide_J and Guide_FR
*Unified all appendices
*Release Guide_CN
*Improve layout and design of all variant
*Improve content
*Add streamline diagrams (using Microsoft Visio) in command reference

Third stage development (planned): ? (0/10 progress)
*Final establishment

From the end of third stage development, C.Basic User's Guide will be updated once per month for general improvement, but when there is an important content update on C.Basic, it will be updated immediately.

The bar above is the progress of C.Basic User's Guide Project. It will be updated at anytime when I am free.

Thank you for your attention.

Cheers
CalcLovrHK
2045, the bright or dark future to the humans?
Sentaro21Hors ligneMembrePoints: 711 Défis: 0 Message

Citer : Posté le 14/12/2019 08:22 | #


I'm happy to see the steady progress.
I want to do my best so that the User's Guide Project will proceed as planned.
Je continue à développer C.Basic. (Il est compatible avec Basic Casio.)
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
CalcloverhkHors ligneMembrePoints: 68 Défis: 0 Message

Citer : Posté le 21/12/2019 08:39 | #


@Sentaro21
Thanks a lot for support.
-------------------------------------
Hi all

There is one important message from C.Basic User's Guide Project that needs to inform you individually.

The Guide_EN is planned to be split into GuideFX_EN and GuideCG_EN to distinguish two contents more clearly and reduce the size brought by distinguishing them in one guide. This will also applied to other language varients. The change will be implemented after the start of the second stage development and GuideCG_EN will be released first at the moment.

Thank you for your attention.

Cheers
CalcLoverHK
2045, the bright or dark future to the humans?
Shadow15510Hors ligneAdministrateurPoints: 4084 Défis: 16 Message

Citer : Posté le 21/12/2019 11:53 | #


Hey Sentaro21, I've an idea of a feature ! It's possible to call a program with Prog by a string ? Such as :
"PROG1"→Str 1
Prog Str 1

And the program named PROG1 was executed…
"Ce n'est pas parce que les chose sont dures que nous ne les faisons pas, c'est parce que nous ne les faisons pas qu'elles sont dures." Sénèque

Moral
   98%
KikoodxHors ligneMembrePoints: 1749 Défis: 9 Message

Citer : Posté le 21/12/2019 12:28 | #


Shadow15510 a écrit :
Hey Sentaro21, I've an idea of a feature ! It's possible to call a program with Prog by a string ? Such as :
"PROG1"→Str 1
Prog Str 1

And the program named PROG1 was executed…

With the really large memory of C.Basic I think that's pretty much useless, except in some really specific cases.
CalcloverhkHors ligneMembrePoints: 68 Défis: 0 Message

Citer : Posté le 21/12/2019 12:40 | #


Hi Shadow15510

Please refer to this website:
https://community.casiocalc.org/topic/7637-cbasic-international-release/page-13#entry62881

Sentaro21's response:
It is impossible to execute in genuine Casio Basic.
However, it is possible in C.Basic.
Currently, subprograms need to be registered in advance, which will be corrected in a future update.

Cheers
CalcLoverHK
2045, the bright or dark future to the humans?
Shadow15510Hors ligneAdministrateurPoints: 4084 Défis: 16 Message

Citer : Posté le 21/12/2019 13:01 | #


Okay ! Thank you !
"Ce n'est pas parce que les chose sont dures que nous ne les faisons pas, c'est parce que nous ne les faisons pas qu'elles sont dures." Sénèque

Moral
   98%
Sentaro21Hors ligneMembrePoints: 711 Défis: 0 Message

Citer : Posté le 21/12/2019 13:55 | #


@Calcloverhk
Thanks for the good progress.


@Shadow15510
From the latest version 2.40/1.40, string variables can be used as argument of "Prog" without restrictions.
(Sub-programs are loaded at runtime, not in advance.)


@Kikoodx
Yes, most applications do not need large memory.
However, when using image data etc, it is necessary to use large memory.


Je continue à développer C.Basic. (Il est compatible avec Basic Casio.)
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
Shadow15510Hors ligneAdministrateurPoints: 4084 Défis: 16 Message

Citer : Posté le 21/12/2019 14:07 | #


Sentaro21 : Thank you very much !!
"Ce n'est pas parce que les chose sont dures que nous ne les faisons pas, c'est parce que nous ne les faisons pas qu'elles sont dures." Sénèque

Moral
   98%
ArckyHors ligneMembrePoints: 5 Défis: 0 Message

Citer : Posté le 22/12/2019 21:38 | #


If you use the multidrawstat and do Graph(X,Y)=(VL{...},VM{....})
Where V is a number, and LM are variables, the multidrawstat doesn't work like it would do in Basic. (The picture drawn is a bit weird)
Développement Awake :Un RPG au tour par tour avec des boss, des équipements... En développement... (C.Basic)
Sentaro21Hors ligneMembrePoints: 711 Défis: 0 Message

Citer : Posté le 23/12/2019 01:39 | #


Thanks for bug report!

This program example seems to work like Basic Casio.
ViewWindow 1,127,0,1,63,0
For 0->A To 30
Cls
Graph(X,Y)=(2A{1,1,2,2},1A{1,2,1,2})
Next

It is slower than Basic Casio.
I think MultiDrawstat's compatibility is still insufficient.


Could you please show the program sample which occurs problem?
Je continue à développer C.Basic. (Il est compatible avec Basic Casio.)
Overclocking utilitaire Ftune/Ptune2/Ptune3 est également disponible.
Si vous avez des questions ou un rapport de bogue, n'hésitez pas à me le faire savoir.
Pages : Précédente1 ... , 17, 18, 19, 20, 21, 22, 23, 24Suivante

Planète Casio v42 © créé par Neuronix et Muelsaco 2004 - 2020 | Il y a 73 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd