Planète Casio - Tout le forum - Flux RSS http://www.planet-casio.com Programmes Casio, Jeux, Cours pour Calculatrices Casio fr-FR https://www.planet-casio.com/images/logo.gif Planète Casio - Tout le forum - Flux RSS http://www.planet-casio.com 55 50 Programmes Casio, Jeux, Cours pour Calculatrices Casio. Tue, 17 Nov 2026 21:35:51 GMT Tue, 17 Nov 2026 21:35:51 GMT contact@planet-casio.com (Planet Casio) contact@planet-casio.com (Planet Casio) 5 Chatbot AI on Casio fx-CG50 https://www.planet-casio.com/Fr/forums/topic19775--.html Link video: https://vt.tiktok.com/ZSpbfNo4x/ (The video has been sped up.............................) Mon, 16 Nov 2026 15:09:05 +0100 [BASIC] Générateur de QR codes https://www.planet-casio.com/Fr/forums/topic19773--.html Comme trou de lapin en préparation d'un projet que j'ai envie de faire en BASIC, j'ai commencé à travailler sur un générateur de QR codes, avec un peu d'aide de Yatis, pour permettre à un programme BASIC d'exporter des données. L'idée derrière c'est que je voulais coder mon projet sans PC, et notamment exporter des screenshots comme ça via mon téléphone. Bon l'intérêt est limité, le mieux c'est vraiment de faire une Picture puis de récupérer le g1m associé ^^;, mais le délire est fait. 'ASCII "ABCD" {65,66,67,68→List 1 Prog "QR11" https://www.planet-casio.com/storage/forums/img-ABCD-202932.jpg https://www.planet-casio.com/storage/forums/img-scan-202933.jpg Si vous avez jamais vu, les QR codes c'est vachement compliqué en fait. Je recommande ce tutoriel (et un ad blocker). Mon programme génère uniquement des QR codes en version 11 (61x61 pixels), niveau de correction d'erreurs L (le plus faible, pour mettre un max de données), avec l'alphabet "bytes". Ça fait 321 octets de données maximum par QR code. Quand je dis que c'est compliqué, en gros y'a deux parties assez longues, une qui est de générer le code correcteur d'erreurs Reed-Solomon, l'autre qui est le placement des pixels de données au bon endroit en esquivant tous les trous et les zones réservées. Pour le code correcteur d'erreur, il se fait en 4 blocs où on prend 81 octets de données (+ 20 zéros) et on en fait une division euclidienne par un polynôme de degré 20 pour obtenir 20 octets de correction d'erreur. Donc ça veut dire qu'il faut faire 4 blocs × 81 itérations × 20 multiplications-soustractions, sachant que dans le corps considéré la multiplication c'est une opération du type `a*b := T2[(T1 + T1) % 255]` avec deux tableaux `T1` et `T2`, et la soustraction c'est un xor entre deux octets. Et maintenant vous savez pourquoi je me préoccupais de la vitesse de calcul du xor ;p Pour le dessin, la difficulté c'est qu'il y a plein de zones réservées et les règles qui disent où on met les pixels de données et dans quel ordre sont en fait assez chiantes. (Je ferai peut-être un dessin pour montrer) Le statut actuel c'est que j'ai réussi à générer quelques QR codes que mon téléphone arrive à lire. Les performances sont désastreuses, ça prend genre 2 minutes en full overclock, 5-10 minutes sans x) (Et il faudrait 4 QR codes pour exporter un screenshot !) C.Basic défonce ces temps bien sûr et exporte en 1 minute 20 sans overclock et genre 15 secondes avec. Je compte optimiser un peu le calcul de la vision de polynômes et du placement de pixels pour le principe, et ensuite j'aurai fini. ^^ Sun, 15 Nov 2026 15:59:35 +0100 emuCasioCalc : émulateur d'add-ins Graph 90+E / fx-CG50 et Graph 35+E II pour Linux et macOS https://www.planet-casio.com/Fr/forums/topic19771--.html Bonjour à tous ! Je vous présente emuCasioCalc, un émulateur qui fait tourner les add-ins de la Graph 90+E / fx-CG50 (et fx-CG10/20) sur PC, ainsi que les add-ins gint monochromes (.g1a) de la Graph 35+E II / fx-9860G II, sous Linux et macOS. https://raw.githubusercontent.com/joserodpt/emuCasioCalc/main/assets/screenshots/accircuit.png Principe Il ne démarre pas l'OS de la calculatrice et n'en a pas besoin. Il exécute le code SH4 de l'add-in sur un interpréteur : - add-ins basés sur l'OS (libfxcg / PrizmSDK) : les appels système sont implémentés côté PC, 193 des 273 syscalls connus de libfxcg ; - add-ins gint (fxSDK) : le matériel du SH7305 que gint pilote est modélisé (contrôleur d'interruptions, timers, RTC, DMA, clavier, écran R61524) ; - add-ins .g1a pour Graph 35+E II / fx-9860G II, avec le moteur de gris de gint. Fonctionnalités - rechargement automatique : recompilez l'add-in, il se relance tout seul ; - enregistrement de GIF, et démos scriptées sans fenêtre (touches, attentes, captures) ; - le son joué sur le port de liaison, sur les haut-parleurs ou dans un .wav ; - clavier de la fx-CG50 à l'écran, zoom 1x à 6x, timing réaliste ou rapide, vitesse de 10 % à 400 % ; - les polices de Casio, lues depuis un dump de l'OS de votre propre calculatrice (facultatif) ; - affichage en direct de l'écran d'une vraie calculatrice par USB (Linux), et envoi de l'add-in vers la calculatrice. https://raw.githubusercontent.com/joserodpt/emuCasioCalc/main/assets/screenshots/electronics-keyboard.png Compilation Il faut CMake, SDL3 et Python 3 (sous macOS : brew install cmake sdl3), puis : cmake -S . -B build cmake --build build ./run.sh mon-addin.g3a Le code source est sous licence MIT : github.com/joserodpt/emuCasioCalc. Téléchargement : archive zip du code source. Il ne contient ni OS, ni ROM, ni police de Casio, ni add-in d'autres auteurs. Il a été écrit avec l'aide d'une IA générative. Je m'en sers pour tester mes add-ins (casioCalcApps). Vos retours, rapports de bugs et add-ins qui ne marchent pas sont les bienvenus ! Thu, 12 Nov 2026 23:37:55 +0100 [BASIC] Optimisation du calcul de xor https://www.planet-casio.com/Fr/forums/topic19770--.html Je cherche comment optimiser le calcul de `xor` entre deux octets en BASIC. À l'origine c'est pour générer les codes d'erreur de QR codes, mais ça pourrait potentiellement servir ailleurs... je suis preneur d'idées. Il y a bien la commande `xor` du mode BASE, qu'on peut utiliser en mode normal si on écrit l'opcode direct un g1m avec un éditeur hexadécimal (vu qu'il est pas dans la catalogue et qu'on peut pas copier/coller en mode BASE), mais ces commandes binaires sont leeeentes. Pour vous donner une idée, sur ma Graph 75+E, sans overclock : For 0→I To 255:Iand255:Next '7.30 s (!!) For 0→I To 255:I Rmdr 256:Next '1.30 s C'est pas super étonnant dans la mesure où les nombres en BASIC sont stockés en BCD (en base 10) donc les opérations binaires sont pas rapides, mais là c'est vraiment catastrophique. Du coup je cherche des alternatives arithmétiques. Voilà mon benchmark... For 1→A To 4 Locate 1,1,A For 100→I To 115 For 100→J To 115 IxorJ Next:Next:Next:ClrText '26.90 s (!!) Dans la suite, tout reste fixe sauf la ligne `IxorJ`. La seule piste qui marche à peu près pour l'instant est de coder la fonction sur 4 bits dans une matrice 16×16 et de recombiner les deux moitiés à la main : 16MatA[1+I Int÷ 16,1+J Int÷16]+Mat A[1+I Rmdr 16,1+J Rmdr 16 '20.10 s Sachant que `MatA[1+I,1+J] = IxorJ`, précalculé. J'ai aussi essayé dans une liste, en espérant que je gagnerais sur le calcul mélangé des indices : 16List 9[1+16(I Int÷ 16)+J Int÷ 16]+List 9[1+16(I Rmdr 16)+J Rmdr 16 '20.76 s Avec `List 9[16I+J] = IxorJ`, précalculé. La variation où les bits du haut sont obtenus par soustraction est plus lente : 16List 9[1+I-(I Rmdr 16)+J Int÷ 16]+List 9[1+16(I Rmdr 16)+J Rmdr 16 '23.20 s Je suis un peu à court d'idées, je me demandais si y'a pas moyen de tricher avec d'autres fonctions hardcodées, e.g. donner une expression de A xor B comme `List 1+List 2[A+B]`, mais y'a pas de solution pour cette forme-là et je sais pas trop par quel autre bout la prendre. Wed, 11 Nov 2026 15:06:35 +0100 I update the game Terrario https://www.planet-casio.com/Fr/forums/topic19769--.html Now the crash issue,reported bucket bug,and saving failure was completely addressed on fx-9860GIII.Infinite world generation and walls are also introduced.(To be exact, the idea of an infinite world actually comes from the limitations of RAM.It seems that PRAM on fx-9860GIII can be only used to read or write inside it.When i tried to save the info in PRAM,they disappear) You can download it at https://github.com/caiji-xd/terrario (forked from KBD2's repository).The repo is also under MIT License and CC 4.0 License. The game theoretically can alse work well on fx-9860GII.Incompatible with fx-9860G. Mon, 09 Nov 2026 10:48:57 +0100 Hitachi HD62119A02, looking for technical info https://www.planet-casio.com/Fr/forums/topic19768--.html Hello :sry: I'm looking for any information on the Hitachi HD62119A02, the CPU used in the Casio CFX-9800G. Does anyone know anything about its architecture, instruction set, or relationship to other Hitachi processors? Datasheets, documentation, or previous research would be nice to have (found none in bibliography) So far, I've found a few interesting references: https://martin.poupe.org/casio/ https://github.com/mamedev/mame/blob/master/src/devices/cpu/hcd62121/hcd62121.cpp https://forums.bannister.org/ubbthreads.php?Board=1&main=3073&type=thread&ubb=printthread https://www.shared-ptr.com/sh_insns.html The CFX-9800G service manual also provides a CPU pinout. It identifies a 19-bit address bus, an 8-bit data bus, and several I/O and control signals. The other identified components include a Fujitsu MB834000 4-Mbit ROM and NEC uPD43256 32K × 8 SRAM. As some of you know I'm planning to reverse engineer the CFX-9800G myself (for Linux), so I need to gather whatever information is already out there before getting started (so I don't spend 300 years implementing it). (and so it doesnt cost me a lot of money) Thanks! Mon, 09 Nov 2026 06:32:21 +0100 Investigating the slow file transfer of calculator under Linux https://www.planet-casio.com/Fr/forums/topic19765--.html One of the longstanding issues I encountered when switching from Windows to Linux is the file transfer of Casio USB mass storage calculators between both platforms. That is, Windows is much faster than Linux in this case. For instance, transferring a 3.4 MB KhiCAS MPM add-in to my Graph Math+ takes about 3-4 minutes in Linux, whereas it is only 30 seconds at most in Windows. To figure out what happened during the write operations, I decided to capture and dissect these UMS packets using Wireshark, and I have to say this is wild. For context, UMS devices are managed by the `usb-storage` driver in Linux. The parameter `max_sectors` controls the maximum amount of data that will be transfered to or from the device in a single command. Its default value is 240, which means a maximum transferred data size of 120 KiB where a sector is 512 bytes. The send retrial happens when dCSWDataResidue is non-zero and bCSWStatus = 0 (partial success), and its maximum is SD_MAX_RETRIES = 5. dCSWDataResidue must represent the difference between the amount of data expected from dCBWDataTransferLength and the actual amount of data transferred. Let's take look at the 1 MB file capture in Linux. Applying `usbms.dCBWSignature` filter: https://i.imgur.com/htTLfBs.png Each 4096-byte packet advances LBA as expected and has a duration of 0.01 s. Keep this delta in mind because it will be important later. Now you can see the following 6 packets of 120 KiB data are at LBA = 0x5e70, and it is the same for the next group at LBA = 0x5f60 and so on. Applying additional `usbms.dCSWSignature` filter and zooming in LBA = 0x5e70: https://i.imgur.com/jNxLHom.png The calculator USB driver reports dCSWDataResidue = 118784, implying it only receives 122880 - 118784 = 4096 bytes from the host, and here is the problem. If the calculator really receives 4 KiB of data only, its delta should be the same as the one for the previous packets which is 0.01 s. However the value here is 0.3 s, thus having the same flash write speed, i.e. 4096 / 0.01 = 400 KiB/s and 122880 / 0.3 = 400 KiB/s. Combining with the fact that bCSWStatus = 0x00 (Good), this indicates the 120 KiB of data is actually written to the calculator storage on the first packet, and its driver is lying about the data residue that misleads the Linux SCSI driver to re-send the exact CBW command for 5 times. In Windows case, USBSTOR ignores the entire field and continues to send the next CBW, hence a faster speed. Even worse, the misleading residue also affects the read operation, which leads to a detection failure that surfaces whenever I update systemd to 261 or higher. Lephe has previously documented on this matter and identified that it was due to the constant I/O errors generated from the USB calculator. Taking an example from his libblkid log: [ +0.000011] sd 0:0:0:0: tag#0 CDB: Read(10) 28 00 00 00 01 f0 00 00 10 00 [ +0.000006] I/O error, dev sda, sector 496 op 0x0:(READ) flags 0x880700 phys_seg 2 prio class 2 [ +0.028607] sd 0:0:0:0: tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s The 8th and 9th byte of CDB `00 10` represents the transfer length that specifies the number of contiguous logical blocks to read. Here 0x0010 = 16 blocks * 512 bytes = 8 KiB, which is larger than 4 KiB and triggers the bug. We can reproduce this with the following bash script, and the expected result would be "ok" for the first 4k and "EIO" for the rest. for bs in 1k 2k 3k 4k 5k 6k 7k 8k 9k 10k; do sudo dd if=/dev/sda1 of=/dev/null bs=$bs count=1 iflag=direct \ 2>/dev/null && echo "$bs ok" || echo "$bs EIO" done Linux has various "USB quirks" flags to deal with finicky storages, and the relevant one for our calculators is US_FL_IGNORE_RESIDUE in `drivers/usb/storage/unusual_dev.h`. The following patch was submitted to the upstream Linux kernel by Cakeisalie5 and is under review. Thanks @Cake <3 UNUSUAL_DEV( 0x07cf, 0x6102, 0x0100, 0x0100, "Casio", "fx-CP400", USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_IGNORE_RESIDUE ), UNUSUAL_DEV( 0x07cf, 0x6103, 0x0100, 0x0100, "Casio", "fx-CG50", USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_IGNORE_RESIDUE ), While waiting for the merge, you can immediately apply the equivalent fix with the following commands: echo "options usb-storage quirks=07cf:6102:r,07cf:6103:r" | sudo tee /etc/modprobe.d/casio-usb-quirks.conf sudo modprobe -r uas; sleep 2; sudo modprobe -r usb-storage; sudo modprobe usb-storage The temporary alternative is to set `max_sectors_kb` to 4 so that every read is then split into 4096-byte commands and the residue arithmetic never goes wrong: echo 4 | sudo tee /sys/block/sda/queue/max_sectors_kb sudo udevadm trigger In a nutshell: https://i.imgur.com/VhgWee0.png Fri, 06 Nov 2026 20:12:13 +0100 <fstream> in fxSDK https://www.planet-casio.com/Fr/forums/topic19761--.html I was tempted to rewrite my C project in C++, but GCC complained that <fstream> is not available in free standing mode. I'm not quite sure what that means. Did fxSDK implement that or only <stdio.h> is availble? Thu, 05 Nov 2026 10:48:51 +0100 first ever J2ME emulator for the fx 9860G series https://www.planet-casio.com/Fr/forums/topic19760--.html Recently i finished making the worlds first ever J2ME emulator for the fx 9860G series (.g1a). It currently only runs KoalaMines but i plan to hope to add compatability for more apps in the future. Now, I will admit it was AI-Assisted, but hopefully this doesnt devalue what this program has done. If you want to try it, it's avaliable at https://github.com/Legendary-Games-Studios/fxj2me, i also attached the first version below Thanks for reading and i hope you enjoy it! :) Wed, 04 Nov 2026 22:00:23 +0100 mot de passe change tout seul ? https://www.planet-casio.com/Fr/forums/topic19759--.html mon mot de passe a changer tout seul, je sais que je peux faire mdp oublier mais j'aimerais bien savoir pourquoi sa a changer tout seul (le mot de passe de base je l'ai notée sur un papier en plus) Wed, 04 Nov 2026 20:38:47 +0100