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

Getting started with TI-84 Plus CE Programming [ASM] [ICE] [BASIC] [emulator]

Started by Dream of Omnimaga, March 25, 2015, 10:36:41 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Dream of Omnimaga

Yeah 4 bits actually, although in TI-BASIC, unsquished form, it would be more like 8 bits instead of 16.

The custom palette feature would come to the rescue so maybe some map data could even be reused for multiple dungeons like in Illusiat 11.
  • 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

Dream of Omnimaga

#46
So I just got my TI-84+CE and only a few seconds after turning it ON I ran into a funny bug: Basically, if you perform a full memory reset, it says RAM Cleared instead of Mem Cleared O.O


Also, some stuff to know about TI-BASIC: It appears that strings cannot be larger than 32768 characters. I haven't tested with 2-byte tokens, though. An ERR:UNDEFINED will be thrown when attempting to concatenate two strings that exceeds that amount when combined.
  • 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

Snektron

Fun fact: Memory means RAM:P its a common misconceptions that memory means storage aswell :)
though i guess it should say "storage cleared" or something
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

#48
Yeah I meant mem as in both RAM+archive.

EDIT: This is an edited CSE screenshot of about how fast a graph grid (in line mode) can render:



This could be handy for some animations (eg magic) in pure-BASIC

EDIT: New screenshot with the right frame rate.
  • 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

Dream of Omnimaga

#49
Good news, at first glance, it appears that hacked pic vars still work on the TI-84+CE!

With the BASIC program included with http://www.ticalc.org/archives/files/fileinfo/279/27979.html , you can have up to 255 pictures. But I don't think you can send them between calcs.

Yay for Kevtiva making it possible to have 255 pictures instead of 40 15 years before the calc existed. :P

  • 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

  • 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 ??? ??? ??? ??? ???



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

Dream of Omnimaga

Yeah it's TI Smart View. But it's paid (I have a 90 days trial from TI website) and it doesn't emulate undocumented ASM instructions, so games that utilize special modes like Pacman CE does will not work properly. It's also ultra-laggy. (sometimes freezes for 5 seconds when I press like 3 keys in less than 2 seconds)
  • 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

  • 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 ??? ??? ??? ??? ???



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

Dream of Omnimaga

Quote from: Unicorn on June 23, 2015, 04:45:13 AM
Sounds TI :P
Could you translate your post into English so that I can understand it?
  • 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

Snektron

Quote from: DJ Omnimaga on June 23, 2015, 02:07:46 AM
Yeah it's TI Smart View. But it's paid (I have a 90 days trial from TI website) and it doesn't emulate undocumented ASM instructions, so games that utilize special modes like Pacman CE does will not work properly. It's also ultra-laggy. (sometimes freezes for 5 seconds when I press like 3 keys in less than 2 seconds)
Thats what you get for emulating a 12 Mhz CPU in Java <_< it's a fine language, but its not made for that.
They should have used C or something. Also i looked a bit at the code and they use a lot of JS too (since java has abuilt in JS scripting engine). Wouldnt suprise me if
they run an emulator inside JS inside Java <_<
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


alexgt

Quote from: DJ Omnimaga on June 23, 2015, 04:46:16 AM
Quote from: Unicorn on June 23, 2015, 04:45:13 AM
Sounds TI :P
Could you translate your post into English so that I can understand it?
I think he meant that it is normal for Ti to sell you something that barely works or laggs allot :P
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

Quote from: Cumred_Snektron on June 23, 2015, 04:51:01 PM
Quote from: DJ Omnimaga on June 23, 2015, 02:07:46 AM
Yeah it's TI Smart View. But it's paid (I have a 90 days trial from TI website) and it doesn't emulate undocumented ASM instructions, so games that utilize special modes like Pacman CE does will not work properly. It's also ultra-laggy. (sometimes freezes for 5 seconds when I press like 3 keys in less than 2 seconds)
Thats what you get for emulating a 12 Mhz CPU in Java <_< it's a fine language, but its not made for that.
They should have used C or something. Also i looked a bit at the code and they use a lot of JS too (since java has abuilt in JS scripting engine). Wouldnt suprise me if
they run an emulator inside JS inside Java <_<
On top of that they're charging money for it O.O

I bet they would be open to porting it to C or another faster language, but I doubt they'll bother paying staff to do it. It's a shame because the emulator from TI actually has some nice features, such as being able to see the graph, homescreen and table windows all at once.
  • 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

Adriweb

#57
Quote from: Cumred_Snektron on June 23, 2015, 04:51:01 PM
Quote from: DJ Omnimaga on June 23, 2015, 02:07:46 AM
Yeah it's TI Smart View. But it's paid (I have a 90 days trial from TI website) and it doesn't emulate undocumented ASM instructions, so games that utilize special modes like Pacman CE does will not work properly. It's also ultra-laggy. (sometimes freezes for 5 seconds when I press like 3 keys in less than 2 seconds)
Thats what you get for emulating a 12 Mhz CPU in Java <_< it's a fine language, but its not made for that.
They should have used C or something. Also i looked a bit at the code and they use a lot of JS too (since java has abuilt in JS scripting engine). Wouldnt suprise me if
they run an emulator inside JS inside Java <_<

No no no.
The problem (slowness of the emu inside SV) isn't coming from the fact that the emulator is written in JavaScript, nor the fact that the SmartView itself is written in Java.
The problem is that Java's webview has a bad/slow(er) JS engine in its WebView (compared to the standard set in modern browser, with insane JS "compiling"/performance, so to speak).

As said earlier, if you extract the .js and try the emulator core (the .js file) in Chrome, FF, or whatever, it runs fast. Too fast, even (2x-5x the real calc's speed). I did a benchmark on that earlier.
They chose JS as the implementation language of the emu core, and that is clearly not an issue.

Now, if only they can bypass Java's crappy webview and embed v8 or similar, it'd be great. But I don't see TI doing that, as the current speed is already acceptable for teachers (it is faster than the directly native (C++ or C# I think?) emulator previous versions (the 84+ SV)
  • 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

Oh I see now. That's definitively weird. And yeah I doubt they'll bother doing it. That said, I could see teachers asking for a faster emu if the slow key detection gets in the way. When I type fast, the emulator freezes for a few seconds because key input seems to make the emulator take a considerable amount of CPU resources.
  • 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

Adriweb

  • 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