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
Sentaro21 Hors ligne Membre Points: 745 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.45 beta for Graph 35+USB/35+EII/75/85/95 (SD)
https://pm.matrix.jp/CB/CBASIC245beta.zip (updated 10/2/2020)

This is the latest version of C.BasicCG 1.45 beta for Graph90+E/fx-CG10/20/50:
https://pm.matrix.jp/CB/CBASICCG145beta6.zip (updated 10/2/2020)

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, 25 Suivante
Sentaro21 Hors ligne Membre Points: 745 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: 17180 Défis: 142 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.
Sentaro21 Hors ligne Membre Points: 745 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: 266 Défis: 5 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
RedCMD#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Sentaro21 Hors ligne Membre Points: 745 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: 266 Défis: 5 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
RedCMD#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Sentaro21 Hors ligne Membre Points: 745 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: 17180 Défis: 142 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.
Redcmd Hors ligne Membre Points: 266 Défis: 5 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
RedCMD#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Sentaro21 Hors ligne Membre Points: 745 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: 266 Défis: 5 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#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Redcmd Hors ligne Membre Points: 266 Défis: 5 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#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Redcmd Hors ligne Membre Points: 266 Défis: 5 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
RedCMD#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Lephenixnoir En ligne Administrateur Points: 17180 Défis: 142 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.
Redcmd Hors ligne Membre Points: 266 Défis: 5 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
RedCMD#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Sentaro21 Hors ligne Membre Points: 745 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: 266 Défis: 5 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
RedCMD#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Sentaro21 Hors ligne Membre Points: 745 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: 266 Défis: 5 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
RedCMD#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Sentaro21 Hors ligne Membre Points: 745 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: 266 Défis: 5 Message

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


just a single character
RedCMD#4299 - Discord
Mandelbrot SNKEmini Minesweeper Sudoku
Précédente 1, 2, 3 ··· 10 ··· 18, 19, 20, 21, 22, 23, 24, 25 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
Pour coloriser votre code, cliquez ici.
Sinon cliquez sur le bouton ci-dessous.
: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 v42 © créé par Neuronix et Muelsaco 2004 - 2020 | Il y a 31 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