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 ··· 18, 19, 20, 21, 22, 23, 24 ··· 30, 31, 32 Suivante
Sentaro21 Hors ligne Membre Points: 878 Défis: 0 Message

Citer : Posté le 18/11/2019 08:22 | #


@Calcloverhk
Thanks!
That's very good.


@Lephenixnoir
Since there is already Manual_FR.txt,
I would like to create DOCX from Manual_FR.txt for French PDF.
I would be happy if you could correct the mistake there.

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: 24563 Défis: 170 Message

Citer : Posté le 18/11/2019 09:07 | #


Sentaro21 a écrit :
Since there is already Manual_FR.txt,
I would like to create DOCX from Manual_FR.txt for French PDF.
I would be happy if you could correct the mistake there.

This is fine with me. The translation of Manual_FR.txt relied on the automated translation from Japanese to English so it's not extremely good, but it should be clear enough.

If there are any new sections in CalcLoverHK's documentation, please point them out to me and I will translate them as well.
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 18/11/2019 09:41 | #


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

Citer : Posté le 19/11/2019 05:34 | #


In normal basic StoPict 1 creates a 2068byte image
While in C.Basic its 2080bytes
This causes draw commands to be shifted to the right by 1 pixel in normal basic when the 2080byte image is used as the background

Run StoPict 1 in C.Basic
Run BG-Pict 1 in normal basic
in normal basic, create this program
Cls
Vertical 30
Vertical 30

You should notice that the 1st line is moved one pixel to the right
This bug only affects commands that draw to the graph plot like: DrawStat, PlotOn/Off/Chg, Vertical and Horizontal
But not ones that draw directly to the display PixelOn/Off/Chg

This only occurs to the first draw command being run after Cls
The 2nd draw command being run after that, wont be affected
Sentaro21 Hors ligne Membre Points: 878 Défis: 0 Message

Citer : Posté le 19/11/2019 09:07 | #


Thanks for bug report.

The movement of 1 dot cannot be confirmed in normal Basic.
What are the settings for ViewWindow?
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 19/11/2019 09:26 | #


The shifted distance isn't 1 pixel
the offset distance is based on the distance the Xmin value is from 0 in the View Window
so with the ViewWindow 0,60,0,1,63,0,0,0,1
Both Vertical 30 are at 30
but if Xmin is 20, the 1st Verical line is at 50
and the 2nd line at 30
ViewWindow 20,60,0,1,63,0,0,0,1
Sentaro21 Hors ligne Membre Points: 878 Défis: 0 Message

Citer : Posté le 19/11/2019 09:38 | #


Thanks! .
It worked fine.

Does this need to be reproduced in 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.
Lephenixnoir En ligne Administrateur Points: 24563 Défis: 170 Message

Citer : Posté le 19/11/2019 09:40 | #


I think the reasons why it happens might be obscure. The obvious fix here is to make sure that C.Basic creates Pictures of size 2068.

I'm curious about the applications, though.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Redcmd Hors ligne Membre Points: 380 Défis: 7 Message

Citer : Posté le 19/11/2019 09:40 | #


The problem is that C.Basic makes a 2080 byte background image
that when used in normal basic it produces issues
is there way to change how your saving the images, so normal basic doesn't mess up?
maybe its the size of the image: 2080 bytes vs 2068
or how your formatting it
or something else about it that normal basic doesn't like
Sentaro21 Hors ligne Membre Points: 878 Défis: 0 Message

Citer : Posté le 19/11/2019 09:47 | #


If it is not available with normal Basic Casio,
this is an obvious bug in C.Basic, so I fixed it quickly .

2.37 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC237beta.zip
-Fixed the StoPict bug that the PICT file size was increased by 12 bytes (2080 bytes, correctly 2068 bytes) when saveing to main memory.
-Fixed the StoPict bug that the PICT file was not saving to storage memory.

1.37 beta for CG10/20/50/Graph90+E.
https://pm.matrix.jp/CB/CBASICCG137beta.zip
-Fixed the StoPict bug that the PICT file was not saving to storage memory of G1M mode.

--Same update--
-Fixed the bug where the space in comments was deleted when "Save-" of "Edit +Indent" was set in the setup.
-Fixed the bug that an error occurred when copying to Str variable when the length of the list label was 8 characters.
(example) "ABCDEFGH"->List 1[0]
List 1[0]->Str 1

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 20/11/2019 21:13 | # | Fichier joint


if you paste something in at the location shown in the pic, the screen moves up


Redcmd Hors ligne Membre Points: 380 Défis: 7 Message

Citer : Posté le 20/11/2019 21:25 | # | Fichier joint


Also making a bunch of programs with fullstops in the name, are listed incorrectly
NormalBasic

Redcmd Hors ligne Membre Points: 380 Défis: 7 Message

Citer : Posté le 20/11/2019 21:27 | # | Fichier joint


I cant upload more than 1 file per message :|
C.Basic


and how come .bmp files aren't supported by this website
They work when you upload them when creating a message, but you cant upload one when editing a message
Lephenixnoir En ligne Administrateur Points: 24563 Défis: 170 Message

Citer : Posté le 20/11/2019 21:32 | #


They work when you upload them when creating a message, but you cant upload one when editing a message

Welcome to the enthusiastic but not-so-professionnal world in which well-meaning people develop websites a bit too fast and happen to copy around and paste a lot of code, then edit only some of the copies.

Edit: I'm talking about the historic code base of Planète Casio, which was developed by people that have not been here in years.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Redcmd Hors ligne Membre Points: 380 Défis: 7 Message

Citer : Posté le 20/11/2019 22:18 | #


I guessed thats what happened
I'm the type of guy that finds the most obscure and weridest bugs ever
A guy finished a mod and before he released it he wanted me to test it and find some bugs
He said that he had tested for hours and found nothing, I spend 10min and found some crazy bugs. One was you had to type a certain word, press space, press backsace, press alt-tab, alt-tab back again, then double tap tab and the game would crash
Sentaro21 Hors ligne Membre Points: 878 Défis: 0 Message

Citer : Posté le 21/11/2019 03:01 | #


Redcmd a écrit :
if you paste something in at the location shown in the pic, the text moves up


Thanks for bug report.
Please give details of the situation of this bug.

I'll fix that the order of the file list is reversed.


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 21/11/2019 06:24 | #


Hide StatBar: off
create a program with 6 lines
make sure theres a "⏎" (return symbol) on all 6 lines
scroll down to line 6, so line 1 is off the screen
you should be able to go to line 7, but don't
make sure line 2 is on screen
paste something via [SHIFT]+[9] (PASTE)
you should notice that the screen shifts up and you're now able to see line 1
Sentaro21 Hors ligne Membre Points: 878 Défis: 0 Message

Citer : Posté le 21/11/2019 07:43 | #


I'm sorry, I'm still not sure.
What does it look like in NormalBasic?
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 21/11/2019 07:57 | #


You fixed most of this bug ages ago, but theres still some edge cases left behind

https://www.planet-casio.com/Fr/forums/topic14738-14-c-basic-projets.html#168595
-Fixed the cursor position of after clip&paste in editor.


The cusor doesn't move, but the screen does. which shouldn't happen

In normal Basic, if I paste something via clip&paste, the screen doesn't move (unless the paste is bigger than the screen)

in C.Basic if you're at the 2nd to last line (and the last line has a ⏎ (return symbol) at the end of the line). When you paste something the screen moves up, so you cant see the lines below where you pasted

make a program and enter in like 10lines
go to the very bottom, then move up one line, paste something via clip&paste and the screen moves it when it shouldn't

Ajouté le 21/11/2019 à 08:07 :
EDIT
Sentaro21 Hors ligne Membre Points: 878 Défis: 0 Message

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


How much text to paste?
I would appreciate any specific examples.
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 21/11/2019 09:23 | #


just a single character
Précédente 1, 2, 3 ··· 10 ··· 18, 19, 20, 21, 22, 23, 24 ··· 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 135 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