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 En ligne Membre Points: 877 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, 4, 5, 6, 7, 8, 9, 10 ··· 20 ··· 30, 31, 32 Suivante
Manolo Hors ligne Membre Points: 910 Défis: 13 Message

Citer : Posté le 04/01/2019 22:05 | #


Hello, I did not understand everything and I do not have the time and the desire to translate all the comments of this topic to understand, yes, because I speak very, very very bad English. In fact, this project is to make a program (in C if I understand correctly) to read the Basic faster than the basic program of our dear calculator. That's it ?
Hackcell Hors ligne Maître du Puzzle Points: 1524 Défis: 11 Message

Citer : Posté le 04/01/2019 22:27 | #


Exactly ☆ (but some cool feature have been added)

Ps: And yes, your English is crappy, but it means that it can only get better ♥
But the issues is more that your speech sound kinda arrogant
Manolo Hors ligne Membre Points: 910 Défis: 13 Message

Citer : Posté le 04/01/2019 23:54 | #


Sorry, it's not my English, it's Google, in fact, I could do a lot better (although I'm pretty bad, but I'm going to improve), if I translate with Google, it's because I HAVE NO TIME (and no, I'm not Parisian ...)
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 05/01/2019 06:10 | #


@Lephenixnoir
Because garbage collection is troublesome, the current strings specifications make a fixed length.
I'll consider it in the future.


@Manolo
Thanks.
I understand what you mean well.

I'm sorry in French using google translation.
(following google translate.)

Mérite de la version C.Basic,
-Vitesse plus rapide.
-Plus grande zone de programme.
-Plus pratique fonction de commande.
Réduction de la consommation d'électricité de la clé en attente.

Et c'est le plus gros mérite.
-g1m programme fonctionne également en 90+E.


@Hackcell
Thanks for your follow-up.


Ajouté le 05/01/2019 à 06:33 :
This is a simple tutorial for C.Basic for Graph90+E.
(example CityHeros@Captainluigi)

Please make new folder of "CityHero".

transfer g1m files to folder of "CityHero".

Please set setting of C.Basic.




font size of editor.





execute program.

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.
Captainluigi Hors ligne Membre Points: 815 Défis: 1 Message

Citer : Posté le 05/01/2019 09:48 | #


Wow , i must test

But my casio havent a very good resolution for size of the text
Les bons artistes copient, les grands artistes volent. Picasso
Synthwave/Musique électro 80s sur ma chaine Youtube

Jouez à Mario sans arrêt sur votre Casio !
Cliquez pour découvrir
Cliquez pour recouvrir
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 05/01/2019 13:55 | #


The native resolution is different in 90+E and 35+, but g1m mode works equally.
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.
Manolo Hors ligne Membre Points: 910 Défis: 13 Message

Citer : Posté le 05/01/2019 19:13 | #


coucou, comment on fait pour l'installer, j'ai téléchargé le ZIP pour 90+e, puis je sais pas ce qu'il faut faire puis-que si je met le ZIP directement dans ma calto, ça marche pas...
Lightmare Hors ligne Membre de CreativeCalc Points: 690 Défis: 0 Message

Citer : Posté le 05/01/2019 19:19 | #


Hé bien tu extraits le contenu du zip dans un autre dossier, tu cherche l'addin ( en .g3a je crois), et tu transfères ce fichier
"Quand je dis à la cour : "Sautez ! ", tout le monde me demande "jusqu'où ?" "
Dijkstra - The Witcher
Manolo Hors ligne Membre Points: 910 Défis: 13 Message

Citer : Posté le 05/01/2019 19:31 | #


CA MARCHE!! c'est genial!
et , comment on fait pour changer la taille des ligne? comme sur la photo là haut.

Ajouté le 05/01/2019 à 20:05 :
et comment on fait pour exécuter / modifier les programmes téléchargés ou même créés sur la calto?
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 06/01/2019 06:38 | #


@Lightmare
Merci beaucoup pour votre soutien.

@Manolo
Merci de l'utiliser.

La taille des caractères de l'éditeur est définie par configuration.
[SHIFT]-[MENU]
Dans Graph 90+E, vous pouvez utiliser la découpe au sol.
[SHIFT]-[Curseur gauche] ou [SHIFT]-[Curseur droit]

En réglant MainMemory, le programme de BasicCasio peut être utilisé tel quel.


Il sera enregistré automatiquement avec ce paramètre.


Comment utiliser est presque identique à BasicCasio.

(J'utilise Google Traduction.)
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.
Manolo Hors ligne Membre Points: 910 Défis: 13 Message

Citer : Posté le 07/01/2019 23:24 | #


Hello, I have a small question,
in the colors there are also colors white and especially the (holy gods) "RGB",
but how is made for the invisible, as a "plotoff" and colored transparent, a color but we see a little through?

Thank you.

PS, I use Google translation ...
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 08/01/2019 09:18 | # | Fichier joint


C.Basic for 90+E supports 16bit color specification,
RGB, HSV, HSL can be used.
The color selection screen pops up with [SHIFT]-[6].


PlotOff draws with the background color.
The background color can be set Back-Color command in C.Basic.
The default color of the drawing color of PlotOn is Plot/Line-Color.


Transparent color of Trnsp-Color command is used for 16bit bitmap drawing.
This is the sample program.[Fichier joint] BMPTRSP.g3m
[[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
[31,31,(-)2048,(-)2048,(-)2048,31,31,31,31,31,31,31,31,31,31,31]
[31,31,31,(-)2048,31,31,31,31,31,31,31,31,31,31,31,31]
[31,31,31,(-)2048,31,31,31,31,31,31,31,31,31,31,31,31]
[31,31,31,(-)2048,31,31,31,31,31,31,31,31,31,31,31,31]
[31,31,31,(-)2048,31,31,2016,2016,2016,31,31,31,31,31,31,31]
[31,31,31,31,31,31,2016,31,31,31,31,31,31,31,31,31]
[31,31,31,31,31,31,2016,2016,2016,31,31,31,31,31,31,31]
[31,31,31,31,31,31,2016,31,31,31,31,(-)32,(-)32,(-)32,31,31]
[31,31,31,31,31,31,2016,2016,2016,31,31,(-)32,31,31,31,31]
[31,31,31,31,31,31,31,31,31,31,31,(-)32,(-)32,(-)32,31,31]
[31,31,31,31,31,31,31,31,31,31,31,31,31,(-)32,31,31]
[31,31,31,31,31,31,31,31,31,31,31,(-)32,(-)32,(-)32,31,31]
[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
[31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]]->Mat A.W

Cls
RclPict "CASIO\g3p\Forest.g3p"

Transp-Color
For 90->X To 300 Step 32
_Bmp16 &Mat A,X,70
Next

Transp-Color #31
For 90->X To 300 Step 32
_Bmp16 &Mat A,X,100
Next



Bitmap data is put in matrix.


It also has a simple bitmap editor.([OPTN]key)

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.
Manolo Hors ligne Membre Points: 910 Défis: 13 Message

Citer : Posté le 08/01/2019 18:52 | #


and so, what is the command to change the bottom
?
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 09/01/2019 00:14 | #


Désolé pour le manque d'explication.
[SHIFT] - [F2]
Vous pouvez maintenant accéder à l’affichage matriciel.

[SHIFT] - [F1]
Ceci est une liste de variables.
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.
Manolo Hors ligne Membre Points: 910 Défis: 13 Message

Citer : Posté le 09/01/2019 19:04 | #


There are parameters to return? Kind "RefreshCtrl"?
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 10/01/2019 07:54 | #


Oui, ces commandes ont des valeurs de retour.
Veuillez noter que la façon de lire la valeur de ces commandes est légèrement différente.

RefrshCtrl et la commande RefrshTime permettant de définir le rafraîchissement de l'écran par une commande.
(exemple) RefrshCtrl 0
pas de contrôle de rafraîchissement.
(exemple) RefrshCtrl 1
Le contrôle de rafraîchissement est fourni. Définir en mode graphique uniquement.
(exemple) RefrshCtrl 2
Tout le contrôle de rafraîchissement est fourni. Réglez sur le mode Tous (graphiques + texte).
(exemple) RefrshTime 5
Définissez l'heure de réglage du contrôle d'actualisation sur 5.
  Les intervalles de mise à jour de l'écran sont de 5/128 secondes.

(format) +RefrshCtrl ou (RefrshCtrl)
(format) +RefrshTime ou (RefrshTime)
La valeur actuelle de RefrshCtrl/RefrshTime est renvoyée.
  (* Une erreur se produira si la commande arrive au début de l'expression.)
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.
Manolo Hors ligne Membre Points: 910 Défis: 13 Message

Citer : Posté le 10/01/2019 18:04 | #


I tried everything but when it's in a loop "While" or "LpWhile", it doesn't work...
I haven't used Google translate" !!!
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 11/01/2019 00:10 | #


Which program does not work?

The following example works well.
0->A
While A<1000
Locate 1,1,A
A+1->A
WhileEnd


I haven't used Google translate" !!!

Oh! Great!
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.
Manolo Hors ligne Membre Points: 910 Défis: 13 Message

Citer : Posté le 11/01/2019 17:48 | #


No, with graphical fonctions, as the thing with matrices.
No Google translate !
Lightmare Hors ligne Membre de CreativeCalc Points: 690 Défis: 0 Message

Citer : Posté le 11/01/2019 17:52 | #


@Sentaro21 : sorry to ask you during you're answering to Manolo, but I need to know if it's possible to make a background process during the execution of a program ( like a Receive loop for a real-time multi-player game)

Thanks!
"Quand je dis à la cour : "Sautez ! ", tout le monde me demande "jusqu'où ?" "
Dijkstra - The Witcher
Sentaro21 En ligne Membre Points: 877 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.
Précédente 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ··· 20 ··· 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 114 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