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 ··· 10 ··· 14, 15, 16, 17, 18, 19, 20 ··· 30, 31, 32 Suivante
Kikoodx Hors ligne Ancien labélisateur Points: 3011 Défis: 11 Message

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


I think you should code it yourself. Others did.
ouais ouais
Captainluigi Hors ligne Membre Points: 815 Défis: 1 Message

Citer : Posté le 07/10/2019 18:12 | #


Kikoodx a écrit :
I think you should code it yourself. Others did.

Thank you for your help
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 08/10/2019 08:57 | #


Captainluigi a écrit :
Is there anyway to use the input command ( ? ) in graphical mode ?

It is possible to draw everything on the text screen, but it is a little cumbersome.
So added the option.
Cls
FillRect 0,0,127,63
?@(5,5,5)A


2.30 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC230beta.zip
-Added "@" option to the ? command so it can be used on the current screen.
(example) ?@(5,5,5)->A
This can enter 5 columns from Locate coordinates (5,5).

1.30 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG130beta.zip
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 08/10/2019 09:36 | #


Thank you !
But , like Kikoodx said ,
I made my own version

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 08/10/2019 10:11 | #


Oh! nice!
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 09/10/2019 09:06 | #


Hello ! i'm here for a bug report !
When i loaded a bmp and then executed the command StoPict and then Rclpict, the sprite disappears !

here's an example of the code used in my program :

For 1->i to 10
Cls
Bmpload("SPRITE")
_DispVRAM
Next

StoPict 1
RclPict 1
//the sprite disappears !


"Quand je dis à la cour : "Sautez ! ", tout le monde me demande "jusqu'où ?" "
Dijkstra - The Witcher
Captainluigi Hors ligne Membre Points: 815 Défis: 1 Message

Citer : Posté le 09/10/2019 09:16 | #


Maybe because your sprite was displayed on the text screen ? .
( The StoPict use graphical mode )
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
Lightmare Hors ligne Membre de CreativeCalc Points: 690 Défis: 0 Message

Citer : Posté le 09/10/2019 09:24 | #


@captainluigi : no... It's a part of my pokemon project, and everything is on graphical screen;
"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 09/10/2019 13:19 | #


@Lightmare
The Cls command temporarily switches to text mode.
And the Cls command is executed at the timing of StoPict, the graphics screens are cleared at that time.

When using ML commands including BMP commands,,
Please use _ClrVram instead of Cls.

Ajouté le 13/10/2019 à 14:48 :
Here is new update version.

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

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

-Added the UNDO function to the editor. After [DEL], press [ALPHA]+[DEL](UNDO) to return to the state before.(Only one step is valid)
-Improved initializing of Matrix/List/Vct.


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 13/10/2019 15:58 | #


I know you said me how to change dimension of one matrice ( you said me for bytes it's {}→dim dim mat a.b ) , but what is the command to change to one bit ? (1)
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 14/10/2019 01:25 | #


1bit matrix has "P" as specifier.
[[1,2,3]]->Mat A
{8,3}->Dim Dim Mat A.p

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 14/10/2019 09:08 | #


Sentaro21 a écrit :
1bit matrix has "P" as specifier.
[[1,2,3]]->Mat A
{8,3}->Dim Dim Mat A.p

Thank you very much !
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 15/10/2019 09:42 | #


Sorry, I found some bugs in the last update.
Here is bug fixed re-updated.

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

1.31 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG131beta.zip
-Fixed the bug that the cursor position does not return when UNDO is executed when the cursor is moved outside the screen after [DEL].
-Fixed the bug that the program size was not changed when [PASTE] of UNDO.


Ajouté le 16/10/2019 à 08:59 :
Sorry again, I found a bug again in the last update.
Concours de rentrée 2019 - Épreuve Basic !
Here is bug fixed re-updated again.

2.31 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC231beta.zip
-Fixed the bug that memory was insufficient when repeated Mat/List/Vct initialization.

1.31 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG131beta.zip
-Fixed the bug that memory was insufficient when repeated Mat/List/Vct initialization.
-Fixed the drawing position of the SketchThin was shifted by 1 dot.



Ajouté le 17/10/2019 à 04:28 :
Since the previous version of the ? command bug was found.
It is easy to fix, so I re-upload it.

2.31 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC231beta.zip
-Fixed the ? command bug that could not be initialization input to Mat/List/Vct. (enbug in 2.29)

1.31 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG131beta.zip
-Fixed the ? command bug that could not be initialization input to Mat/List/Vct. (enbug in 1.29)

Ajouté le 27/10/2019 à 09:58 :
Here is new updated version.

2.32 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC232beta.zip
-Fixed the bug that 1-byte command was not displayed in Help function. (enbug in 2.20)
-Fixed the bug that [SHIFT]+[ALPHA] lock was released by [EXE](CR).
-Added feature that % can be entered by [ALPHA]+[(-)].

1.32 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG132beta.zip
-Fixed the bug that 1-byte command was not displayed in Help function. (enbug in 1.20)
-Fixed the bug that [SHIFT]+[ALPHA] lock was released by [EXE](CR).
-Added feature that % can be entered by [ALPHA]+[(-)].

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.
Redcmd Hors ligne Membre Points: 380 Défis: 7 Message

Citer : Posté le 02/11/2019 21:48 | #


If you try to store a pic when on the 8192 screen, the calc freezes
[SHIFT], [F3] (V-WIN), [F5] (8192), [F2] (Sto)

Cusor moves to bottom of screen after canceling the Clip function by pressing shift
[SHIFT], [8] (CLIP), [SHIFT]
Sentaro21 En ligne Membre Points: 877 Défis: 0 Message

Citer : Posté le 03/11/2019 09:41 | #


Thanks!
Bugs were confirmed.
I will fix it.

Ajouté le 03/11/2019 à 13:40 :
Here is new updated version.

2.33 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC233beta.zip
-Fixed the bug that the cursor position jumps when canceling by [SHIFT] from clip mode of standard font editor.
-Fixed the bug that freezes when [F2]/[F3] is pressed in [SHIFT]+[F3]+[F5] hex dump mode.

The CG version did not have this bug.

1.33 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG133beta.zip
-Fixed the bug that color was not initialized after Plot command.


Ajouté le 10/11/2019 à 08:29 :
Here is new updated version.

2.34 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC234beta.zip
-Changed the specification of editor that when the file is opened again, the cursor position comes to the same place.
(Up to 7 files are supported.)
-Fixed the bug that sub-program disappear after program interruption when the Help function is enabled.

1.34 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG134beta.zip
-Changed the specification of editor that when the file is opened again, the cursor position comes to the same place.
(Up to 16 files are supported.)
-Fixed the bug that sub-program disappear after program interruption when the Help function is enabled.

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

Citer : Posté le 10/11/2019 08:38 | #


Wow, I saw that there is a lot of versions for your program.. have you done a ChangeLog ?
Redcmd Hors ligne Membre Points: 380 Défis: 7 Message

Citer : Posté le 10/11/2019 08:42 | #


missing header when trying to build C.Basic
D:\Documents\CASIO\fx-9860G SDK\C.Basic\CBASIC234beta\CBASIC234beta\CB.h(35) : C5005 (F) Could not open source file "fxCG_Registers.h"
have you done this on purpose? just to stop people from stealing it?

is there a link for this?
;refer to siomn's fxDocumentation
Captainluigi Hors ligne Membre Points: 815 Défis: 1 Message

Citer : Posté le 10/11/2019 09:17 | #


I tried this :
Prog str 1

And it didn't work .... ( str 1 was the name of one program file )
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 10/11/2019 14:17 | #


@Disperseur
Please see Change_EN.txt


@Redcmd
Sorry!
"fxCG_Registers.h" was missing.
I added and re-uploaded.


@Captainluigi
Sorry.
Prog command is a specification that cannot use string variables in Prog command.
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.
Disperseur Hors ligne Membre Points: 1830 Défis: 1 Message

Citer : Posté le 10/11/2019 14:27 | #


@CaptainLuigi: Tu veux avoir plus de possibilités et quitter les restrictions du Basic en gardant une certaine simplicité de programmation ? Apprends le python
Kikoodx Hors ligne Ancien labélisateur Points: 3011 Défis: 11 Message

Citer : Posté le 10/11/2019 14:39 | #


Disperseur a écrit :
@CaptainLuigi: Tu veux avoir plus de possibilités et quitter les restrictions du Basic en gardant une certaine simplicité de programmation ? Apprends le python

En gardant à l'esprit que le Python de Casio est plus lent que C.Basic, et qu'on peut pas dire qu'il soit optimal pour faire des jeux.
ouais ouais
Précédente 1, 2, 3 ··· 10 ··· 14, 15, 16, 17, 18, 19, 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 96 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