Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Projets de programmation


Index du Forum » Projets de programmation » C.Basic Projets
Sentaro21 Hors ligne Membre Points: 878 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.47 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC247beta02.zip (updated 11/12/2023)

This is the latest version of C.BasicCG 1.47 beta for Graph90+E/fx-CG10/20/50:
https://pm.matrix.jp/CB/CBASICCG147beta02.zip (updated 11/12/2023)

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

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


Précédente 1, 2, 3 ··· 10 ··· 19, 20, 21, 22, 23, 24, 25 ··· 30, 31, 32 Suivante
Redcmd Hors ligne Membre Points: 380 Défis: 7 Message

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


just a single character
Sentaro21 Hors ligne Membre Points: 878 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.
Kikoodx Hors ligne Ancien labélisateur Points: 3039 Défis: 11 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.
ouais ouais
Sentaro21 Hors ligne Membre Points: 878 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.
Calcloverhk En ligne Membre Points: 358 Défis: 10 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
C.Basic Wiki Project progress as of 2024/2/12
   30%


Sentaro21 Hors ligne Membre Points: 878 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.
Lephenixnoir Hors ligne Administrateur Points: 24673 Défis: 170 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
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Sentaro21 Hors ligne Membre Points: 878 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.
Lightmare Hors ligne Membre de CreativeCalc Points: 690 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.
"Quand je dis à la cour : "Sautez ! ", tout le monde me demande "jusqu'où ?" "
Dijkstra - The Witcher
Sentaro21 Hors ligne Membre Points: 878 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.
Calcloverhk En ligne Membre Points: 358 Défis: 10 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
C.Basic Wiki Project progress as of 2024/2/12
   30%


Sentaro21 Hors ligne Membre Points: 878 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.
Calcloverhk En ligne Membre Points: 358 Défis: 10 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
C.Basic Wiki Project progress as of 2024/2/12
   30%


Shadow15510 Hors ligne Administrateur Points: 5504 Défis: 18 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

Kikoodx Hors ligne Ancien labélisateur Points: 3039 Défis: 11 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.
ouais ouais
Calcloverhk En ligne Membre Points: 358 Défis: 10 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
C.Basic Wiki Project progress as of 2024/2/12
   30%


Shadow15510 Hors ligne Administrateur Points: 5504 Défis: 18 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

Sentaro21 Hors ligne Membre Points: 878 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.
Shadow15510 Hors ligne Administrateur Points: 5504 Défis: 18 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

Arcky Hors ligne Membre Points: 6 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)
Sentaro21 Hors ligne Membre Points: 878 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.
Précédente 1, 2, 3 ··· 10 ··· 19, 20, 21, 22, 23, 24, 25 ··· 30, 31, 32 Suivante

LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

Σ π θ ± α β γ δ Δ σ λ
Veuillez donner la réponse en chiffre
Vous devez activer le Javascript dans votre navigateur pour pouvoir valider ce formulaire.

Si vous n'avez pas volontairement désactivé cette fonctionnalité de votre navigateur, il s'agit probablement d'un bug : contactez l'équipe de Planète Casio.

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2024 | Il y a 67 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