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
Sentaro21En ligneMembrePoints: 523 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

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.23 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC223beta.zip (updated 19/8/2019)

This is the latest version of C.BasicCG 1.23 beta for Graph90+E/fx-CG10/20/50:
https://pm.matrix.jp/CB/CBASICCG123beta.zip (updated 19/8/2019)

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

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


Pages : Précédente1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ... 14Suivante
Sentaro21En ligneMembrePoints: 523 Défis: 0 Message

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


@Manolo
Does it work with For-Next/Do-Lpwhile other than While-WhileEnd?
Could you please show me that program?


@Lightmare
Sorry,there is no background process in the current version of C.Basic.
However there is a possibility in the future.

Ajouté le 18/01/2019 à 13:16 :
Here is new updated version.

for Graph 35+USB/75/85/95 (SD) version.
https://pm.matrix.jp/CB/CBASIC192beta.zip
-Changed specification of the default at the first startup that to use the hidden RAM. (SH4A only)
-Fixed 4 or more dimensional matrix inversion bug.
(false example) [[0,0,0,1][27,9,3,1][216,36,6,1][512,54,8,1]]^(-1)
-Fixed degrees(hours),minutes,seconds calculation bug of comlpex mode.
-Fixed Text bug that if displayed at the right end, it will turn back to the left.
-Fixed Goto bug that when Goto in the loop was executed before the loop repeated.

for Graph90+E/CG10/20/50 version.
https://pm.matrix.jp/CB/CBASICCG066.zip
-Fixed 4 or more dimensional matrix inversion bug.
(false example) [[0,0,0,1][27,9,3,1][216,36,6,1][512,54,8,1]]^(-1)
-Fixed degrees(hours),minutes,seconds calculation bug of comlpex mode.
-Fixed Goto bug that when Goto in the loop was executed before the loop repeated.
-Corrected cursor shape of clip mode of overwrite mode.
-Fixed Locate not display in emulator.(not complete yet.)

Thanks for e-mail(@web.de) regarding the bug reports.

Ajouté le 26/01/2019 à 08:41 :
Here is new updated version.
https://pm.matrix.jp/CB/CBASIC193beta.zip
-Fixed the extended variable bug that used local variable.
-Fixed "=>" command bug that re-write Ans of sub-program.


for Graph90+E/CG10/20/50 version.
https://pm.matrix.jp/CB/CBASICCG067.zip
-Fixed the extended variable bug that used local variable.
-Fixed "=>" command bug that re-write Ans of sub-program.

-It seems to be fixed (unknown bug)(v0.66)
(unknown bug)(v0.66)
When operating in OS 3.20, debug mode will be canceled by pressing any key other than [F1]-[F4] in the first debug mode operation.


Ajouté le 03/02/2019 à 08:41 :
Here is new updated version.
https://pm.matrix.jp/CB/CBASIC194beta.zip
-Fixed the bug that [AC] break does not work in programs that frequently call "Prog".
-Fixed the loop end operation when Next/WhileEnd/LpWhile exists after "=>" command.
-Fixed the bug that the sub name of List n[0] could not be displayed with the Locate/Text command.
-Fixed the bug that ?->fn1,?->Y1 could not be entered.

for Graph90+E/CG10/20/50 version.
https://pm.matrix.jp/CB/CBASICCG068.zip
-Fixed the bug that [AC] break does not work in programs that frequently call "Prog".
-Fixed the loop end operation when Next/WhileEnd/LpWhile exists after "=>" command.
-Fixed the bug that the sub name of List n[0] could not be displayed with the Locate/Text command.
-Fixed the bug that ?->fn1,?->Y1 could not be entered.
-Fixed drawing of Circle command specified Sketch-Dot and Sketch-Broken in g3m mode.

With this update,
A vers B (@Ninestars)
Air Control (@Shadow15510)
will be able to work.
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.
ManoloHors ligneMembrePoints: 905 Défis: 13 Message

Citer : Posté le 03/02/2019 09:50 | #


stupid question, but, could you make an inventory of all the additional functions (with their descriptions, their functioning etc...) of the C.Basic? and if not, how does the "screen" function work?
LephenixnoirHors ligneAdministrateurPoints: 15231 Défis: 136 Message

Citer : Posté le 03/02/2019 09:51 | #


Did you check out Extended commands and Extended graphics commands in C.Basic's documentation?
ManoloHors ligneMembrePoints: 905 Défis: 13 Message

Citer : Posté le 03/02/2019 09:54 | #


thank you !

Ajouté le 03/02/2019 à 10:36 :
et sinon, personne ne sait pour screen ?
LephenixnoirHors ligneAdministrateurPoints: 15231 Défis: 136 Message

Citer : Posté le 03/02/2019 10:39 | #


(Description) Select the target VRAM for VRAM access.
(Format 1) Screen
Switch text / graphics.
(Format 2) Screen.T or Screen.t
Switch to text VRAM.
(Format 3) Screen.G or Screen.g
Switch to graphic VRAM.
(Format 4) Screen expression
If the expression value is 0, switch to text VRAM, if 1, switch to graphic VRAM.

If you use the Screen command in the expression, 0 is returned for text VRAM and 1 for graphic VRAM.
ManoloHors ligneMembrePoints: 905 Défis: 13 Message

Citer : Posté le 03/02/2019 10:43 | #


euuuuuh... j'ai pas compris
Sentaro21En ligneMembrePoints: 523 Défis: 0 Message

Citer : Posté le 03/02/2019 11:30 | #


@Manolo
C.Basic has two full 16bit color graphics screens of text and graphics.
Because the Basic Casio commands automatically switch screens(Text/Graphics), but not extended commands.
the "Screen" command is used to select screens(Text/Graphics).

(example1)
"Text screen"   // change the text screen automatically and draw text.
_Line 0,0,383,191
_DispVram
Draw line on the text screen.

(example2)
"Text screen"   // change the text screen automatically and draw text.
Text 1,1,"Graphics"  // change the graphics screen automatically and draw text.
_Line 0,0,383,191
_DispVram
Draw line on the graphics screen.

(example3)
Screen.G  // change the graphics screen.
_Line 0,0,383,191
_DispVram
Draw line on the graphics screen.


@Lephenixnoir
Thanks for your support.

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.
LephenixnoirHors ligneAdministrateurPoints: 15231 Défis: 136 Message

Citer : Posté le 03/02/2019 11:32 | #


Thanks for your support.

You're welcome! If you need any help translating your documentation, I will gladly help out. French is a possibility if you want to reach more people in Planète Casio.
ManoloHors ligneMembrePoints: 905 Défis: 13 Message

Citer : Posté le 03/02/2019 11:37 | #


thank you !
Sentaro21En ligneMembrePoints: 523 Défis: 0 Message

Citer : Posté le 03/02/2019 12:11 | #


@Lephenixnoir
I would be grateful if you could translate to French.
Maybe there are many places where English documents is not good.

@Manolo
Anytime!
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.
ManoloHors ligneMembrePoints: 905 Défis: 13 Message

Citer : Posté le 03/02/2019 12:41 | #


sentaro21, I have a very very stupid question, in the next update, will you be able to make the names of programs can be more than 8 characters long? if you can do it, it's too cool, thank you!
LephenixnoirHors ligneAdministrateurPoints: 15231 Défis: 136 Message

Citer : Posté le 03/02/2019 14:38 | #


Sentaro21 a écrit :
@Lephenixnoir
I would be grateful if you could translate to French.
Maybe there are many places where English documents is not good.

Would you have a Git repository with the documentation, or a copy of the documentation files? This would make it easy for me.
Sentaro21En ligneMembrePoints: 523 Défis: 0 Message

Citer : Posté le 04/02/2019 07:29 | #


@Manolo
The g1m/g3m program file of Basic Casio contains the file names of up to 8 characters.
That is why it is limited to 8 characters.
So that might be a bit difficult.

@Lephenixnoir
However I'm not familiar with how to use git.
Is this OK?
https://gitlab.com/sentaro21/c.basic
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: 500 Défis: 0 Message

Citer : Posté le 04/02/2019 07:37 | #


@Sentaro21 : i guess there is an error in the link you've put : Error 404
42
Sentaro21En ligneMembrePoints: 523 Défis: 0 Message

Citer : Posté le 04/02/2019 08:09 | #


Oh, I'm sorry.
Is Github locked?
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.
Cakeisalie5Hors ligneMembre de CreativeCalcPoints: 1746 Défis: 10 Message

Citer : Posté le 04/02/2019 08:10 | #


It's https://github.com/sentaro21/c.basic not https://gitlab.com/sentaro21/c.basic

Promotion ordinaire sur les inscriptions sur Planète Casio : en ce moment, c'est gratuit !
Besoin d'utilitaires de transfert vers et depuis la calculatrice sous GNU/Linux ?
LephenixnoirHors ligneAdministrateurPoints: 15231 Défis: 136 Message

Citer : Posté le 04/02/2019 08:16 | #


Sentaro21 a écrit :
However I'm not familiar with how to use git.
Is this OK?
https://gitlab.com/sentaro21/c.basic

Yes, that's it! You only need to put the documentation files in there (in English preferably, because I can't read Japanese) and I will add the French versions.
Sentaro21En ligneMembrePoints: 523 Défis: 0 Message

Citer : Posté le 04/02/2019 08:36 | #


Thanks!
Fixed.
https://gitlab.com/sentaro21/cbasic
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.
LephenixnoirHors ligneAdministrateurPoints: 15231 Défis: 136 Message

Citer : Posté le 04/02/2019 22:20 | #


Nice!

I've translated about 16% of Manual_EN.txt today. At some places I can't really understand what's written, but overall I can easily translate the text.

Your documentation is pretty huge, this will take some time!
Sentaro21En ligneMembrePoints: 523 Défis: 0 Message

Citer : Posté le 05/02/2019 07:15 | #


Thanks very much!
and I'm sorry for the mistranslation a lot.
Please let me know where difficult to understand.
I will translate it again.

I'm sorry for your inconvenience.
Thanks very much for your cooperation.

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.
LephenixnoirHors ligneAdministrateurPoints: 15231 Défis: 136 Message

Citer : Posté le 05/02/2019 07:45 | #


From here to the end of the section is very unclear: https://gitlab.com/sentaro21/cbasic/blob/master/FX/Manual_EN.txt#L164

Other than this, I just suspect there may be a mistake here: https://gitlab.com/sentaro21/cbasic/blob/master/FX/Manual_EN.txt#L325
If you want to convert to word format, I think the correct equivalent is:
[[0x0102,0x0304][0x0506,0x0708]]->Mat A.W
Pages : Précédente1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, ... 14Suivante

Planète Casio v42 © créé par Neuronix et Muelsaco 2004 - 2019 | Il y a 24 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