Join us on Discord!
You can help CodeWalrus stay online by donating here.

Online C compiler for the TI-84 Plus CE / TI-83 Premium CE

Started by Adriweb, September 30, 2015, 10:19:03 PM

Previous topic - Next topic

0 Members and 11 Guests are viewing this topic.

Snektron

#60
Sweet :) I'll be testing this out. Have to create a ti-planet account first though :P

EDIT: Wow that looks sweet :D Nice job
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Adriweb

It is indeed currently restricted to users being logged-in, so far.
We have yet to decide if that's going to change.

For project types without a server backend doing the work (contrary to the C Compiler type), but just stuff client-side, it can't really hurt to not require users to be logged in...
An example of that would be a Basic editor, I guess - no need for a backend, as I would make it work with an emscriptened version of tivars_lib_cpp.

Edit: news delayed for a beta2 release with a bit more features for beginners especially.
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Dream of Omnimaga

Awesome adriweb. Let the beta-testing begin. Since some of us don't know C, perhaps if someone knows how to make CE programs he could give us access to his projects or a simple program so that we can at least test the compiler features for bugs. :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

critor

You can copy/paste the source code included in the .zip files from Crystann/Mandragore/Androides for example.

Unfortunately, giving you access to one of these projects would mean giving you both read+write permissions on the project.
We're missing a "read-only" permission together with a clone button.

That's why there will be a beta2 together with a news. ;)

Adriweb

Actually, not directly, since the headers have changed since then.

there's no ce.h anymore, but there's :
#include <startup.h>
#include <ti84pce.h>

that has to be there in the main.c file.

In other files, if this is the case, only ti84pce.h is needed (do not put startup!)

Anyway, the next beta version will provide a better UX for beginners especially, while this beta1 is more to be able to test the technical parts of if, so for more advanced users who may want to try things on their own.
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Dream of Omnimaga

Quote from: critor on December 02, 2015, 11:41:13 AM
You can copy/paste the source code included in the .zip files from Crystann/Mandragore/Androides for example.

Unfortunately, giving you access to one of these projects would mean giving you both read+write permissions on the project.
We're missing a "read-only" permission together with a clone button.

That's why there will be a beta2 together with a news. ;)
That will be good. :) Also wow I didn't remember that C was so cryptic compared to HP PPL and what I saw of Lua. I checked the Hello World code the other day and it looked more confusing and there were plenty of ASM stuff at the bottom. Is the use of ASM really necessary in order to program games in C for the TI-84 Plus CE?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Unicorn

Whoa! A public beta! I might get to learning some C, now that it can be compiled for a calc...
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Lionel Debroux

DJ: the template for C programs will evolve (and multiply), and less ASM code might be part of the standard templates, but a bit of ASM glue will remain necessary e.g. for some OS functions whose calling convention is non-C and which have not (yet) been wrapped.

Unicorn: yeah, learning C would probably be useful, as making Mandragore ( https://ti-pla.net/a328137http://www.ticalc.org/archives/files/fileinfo/465/46590.html ), Androides ( https://ti-pla.net/a335066http://www.ticalc.org/archives/files/fileinfo/465/46591.html ) and the even better Crystann ( https://ti-pla.net/a353827 , http://www.ticalc.org/archives/files/fileinfo/466/46607.html ) was much easier in C than in ASM.
Some of the inconveniences critor (mainly, Adriweb helped) experienced in the making of these games can be lifted and are in the process of being lifted, but the limitations due to Zilog's horrible compiler will remain.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TIEmu and TILP.
Co-admin of TI-Planet.

Dream of Omnimaga

So in order to program in ez80 C, should people learn ez80 ASM first?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Lionel Debroux

critor didn't learn eZ80 ASM for making these three games, so no, not necessarily, of course.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TIEmu and TILP.
Co-admin of TI-Planet.

Dream of Omnimaga

That is good. Otherwise I was gonna say that we need Axe CE >.<
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Lionel Debroux

#71
Perhaps more so than a platform-specific language with fairly cryptic syntax, we need Lua, Python (implemented by e.g. Micro Python) and JS (implemented by e.g. Duktape) on the TI-eZ80 series :)
Technically, they could run much better on the TI-eZ80 series than on the TI-Z80 series. But Zilog's horrible compiler can get in the way of simply building the programs...
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TIEmu and TILP.
Co-admin of TI-Planet.

Adriweb

Surprise! The Project Builder (but also TI-Planet's archives) now embeds a much improved version of WebCEmu, based on current developments (lots of nice work from Jacobly and Mateo, regarding LCD / SPI / DMA etc.)

The interaction with the browser (especially for the display of the screen, but also the emulation infinite loop) is now written in such a way that there is no need for threading anymore, which simplifies a lot of things, and allows not to encounter weird behaviour (slowness in particular) in recent Chrome versions for example, with these APIs JS being a little too new ... And consequently, the speed of emulation is also closer to the real thing.

In addition, WebCEmu is now built in WebAssembly format, which makes it both faster and smaller :)
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Powered by EzPortal