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 ··· 7, 8, 9, 10, 11, 12, 13 ··· 20 ··· 30, 31, 32 Suivante
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 25/04/2019 09:05 | #


@Captainluigi
@Shadow15510
Thanks very much!
The help file is not complete yet and will be updated.

Ajouté le 27/04/2019 à 09:31 :
Here is new updated version.

for Graph 35+USB/75/85/95 (SD).
https://pm.matrix.jp/CB/CBASIC197beta.zip

for Graph90+E/CG10/20/50
https://pm.matrix.jp/CB/CBASICCG081.zip
-Fixed the incompatibility Fix and Sci in EngOn.
(Example) EngOn:Sci 3
1.23456789e12->12.3M

-Added Strings variable or Numeric variable to the argument of Save/Load command.
(Example) Save "TEST",A
(Example) Load "TEST",Str 1

-Fixed that the upper line of the function key flickered at the help display.

-Help file updated little.

Ajouté le 01/05/2019 à 12:49 :
Here is new updated version.

for Graph 35+E/75/85/95 (SD).
https://pm.matrix.jp/CB/CBASIC198beta.zip
-Changed specification that the case-insensitive of the file name of strage/SD mode.
so it possible to rename each other from upper case to lower case.
(Example) "ABC.bmp"->"abc.bmp"

-Changed the cursor initial position of file input to before the extension.

-Corrected the cursor position for canceling debug mode.
-Fixed the bug that debug mode is not released by the confirmation popup of cancellation of debug mode.

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

Ajouté le 02/05/2019 à 15:27 :
Fixed exiting Goto bug from Switch~SwitchEnd.
and re-updated (1.98beta/0.82alpha)


Ajouté le 04/05/2019 à 10:32 :
Re-updated v1.98beta again.

for Graph 35+E/75/85/95 (SD).
https://pm.matrix.jp/CB/CBASIC198beta.zip
-Added pop-up when external font is not enabled in SetFont 1.

-Changed specification of maximum loop stack level.
(for~Next :upto 4 level -> 7)
(While~WhileEnd :upto 6 level -> 7)
(Do=LpWhile :upto 6 level -> 7)
(Switch~SwithEnd:upto 4 level -> 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.
Captainluigi Hors ligne Membre Points: 815 Défis: 1 Message

Citer : Posté le 04/05/2019 14:32 | #


Est-ce qu'il serait possible que C.Basic ait un jour un moteur de gris ?
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 04/05/2019 15:58 | #


I think that it is possible if there is a library that supports grayscale.
However,
It may be a bit hard to support as a specification.
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 En ligne Administrateur Points: 24145 Défis: 170 Message

Citer : Posté le 04/05/2019 17:19 | #


Currently the only gray engines available should be Kucalc's, which blocks all interrupts and requires a restart at the end of the program, and mine, which is incompatible with fxlib, so that's not a lot of options...
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Captainluigi Hors ligne Membre Points: 815 Défis: 1 Message

Citer : Posté le 04/05/2019 17:41 | #


Lephenixnoir a écrit :
Currently the only gray engines available should be Kucalc's, which blocks all interrupts and requires a restart at the end of the program, and mine, which is incompatible with fxlib, so that's not a lot of options...

okay but dont forget that gint have grey motor : https://www.planet-casio.com/Fr/forums/topic13572-5-Moteur-propre-de-niveaux-de-gris---gint.html
et comme tu est le développeur tu peux peut être aider Centaro , non ?
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
Lephenixnoir En ligne Administrateur Points: 24145 Défis: 170 Message

Citer : Posté le 04/05/2019 17:44 | #


The problem with gint is not much the gray engine but the fact that it replaces fxlib. To use gint, Sentaro would have to rewrite most of C.Basic and change some bits of the logic. I don't think this is the way to go...
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 05/05/2019 09:06 | #


@Lephenixnoir
Thanks!
I would use the gint if I created other new language.

Btw,I have a question,
Does C.Basic work properly in 35+EII?
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 En ligne Administrateur Points: 24145 Défis: 170 Message

Citer : Posté le 05/05/2019 10:31 | #


Sentaro21 a écrit :
I would use the gint if I created other new language.

Well, that's an honor!

Does C.Basic work properly in 35+EII?

I tried it, here is a brief report :

* The file browser often misses files or produces read errors (-1, -3), probably because the file system changed. Especially if an error ocurred when selecting a file, then the directory becomes empty. I have to go back and re-enter it to view the contents again.
* Of the test files, LIST.txt does not work (Can't find file "LIST." (-3), I guess the missing txt is related). Other files in SERIAL_sample produce the same effect.
* Files in the ML_sample directory actually work.
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 05/05/2019 11:25 | #


Thanks for testing!
Are there file system issues with other apps?
Is the file system change similar to 90+E?
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 En ligne Administrateur Points: 24145 Défis: 170 Message

Citer : Posté le 05/05/2019 11:27 | #


Yes, there are file system issues with other apps, including Edit, CasioPython, and apparently everything else that uses the file system. I've yet to investigate how to adapt the programs.

It is possible that the new filesystem is the same as the 90+E, but it has not been analyzed in-depth (and nor has been that of the 90+E, from what I know). So it's only speculation. But that would make sense for Casio.
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 05/05/2019 11:53 | #


OK. Thanks
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.
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 05/05/2019 12:12 | # | Fichier joint


I made some corrections.
Could you please try this?
[Fichier joint]CBASIC199test
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: 5496 Défis: 18 Message

Citer : Posté le 05/05/2019 14:03 | #


For the monochrome version, 1.98 beta (the newest beta version) the command SetFont doesn't work on my calc...
This is what I do : I delete <@CBASIC> folder in main memory, and optimize the storage memory. When I launch my programme with the line code : SetFont1 at the first line, the external font isn't used...

I also tryed '#SetFont1 and to change number with 0 and 2, but with results... 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 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 05/05/2019 14:28 | #


'#SetFont 1  // This usage is wrong.

SetFont 1  // This usage is correct

It is used at the beginning of FEINT35F.g1m.

For the monochrome version,
The meaning of SetFont 1 is only to prompt to switch by setup.
Actually switching is done by setup.
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: 5496 Défis: 18 Message

Citer : Posté le 05/05/2019 14:30 | #


Okaayy... So I have another problem : the external font is not use despite the setup is switched "on"
"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 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 05/05/2019 14:54 | #


I'm sorry! I was embug!
Please download again.
https://pm.matrix.jp/CB/CBASIC198beta.zip (re-uploaded)
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: 5496 Défis: 18 Message

Citer : Posté le 05/05/2019 15:34 | #


Thank you very much !! I'll try immediately

Edit : Nope, I have still a problem... I think the problem not come from this command. I want to the programm use the external font. My setup named Enable ExFont is switched on but, the programme doesn't use the external font : it use the font by defaut... :sry;
"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

Lephenixnoir En ligne Administrateur Points: 24145 Défis: 170 Message

Citer : Posté le 05/05/2019 16:00 | #


Sentaro21 a écrit :
I made some corrections.
Could you please try this?

Yes, I have tried the new version.

Unfortunately, the behavior is still the same, with many files failing to open with this error.

Can't find file SOMETHING.

Note the missing .txt which seems to be related.
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 06/05/2019 09:12 | #


@Shadow15510
Sorry for external font problem continued.

Please try this updated.
The tests here are works well.
https://pm.matrix.jp/CB/CBASIC198beta.zip (re-re-uploaded)
-Fixed the bug that external font is not enable.(Maybe fixed.)
-Fixed the bug that caused memory error of input "?" command of string.


@Lephenixnoir
Thanks for testing.
I think that it is difficult to fix without the information of change of Bfile's SysCall.
Are there any add-ins that have file access working properly in 35+EII?
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 En ligne Administrateur Points: 24145 Défis: 170 Message

Citer : Posté le 06/05/2019 09:20 | #


Sentaro21 a écrit :
I think that it is difficult to fix without the information of change of Bfile's SysCall.
Are there any add-ins that have file access working properly in 35+EII?

Unfortunately, no such add-in has been tried yet. I don't really know how to start if I need to disassemble, because the file system is much more complex than the usual hardware drivers I look at.
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
Shadow15510 Hors ligne Administrateur Points: 5496 Défis: 18 Message

Citer : Posté le 06/05/2019 09:37 | #


Perfect !! 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

Précédente 1, 2, 3 ··· 7, 8, 9, 10, 11, 12, 13 ··· 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 100 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