Author Topic: Casio Prizm - Color graphic calculator  (Read 99428 times)

0 Members and 1 Guest are viewing this topic.

Offline TravisE

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 182
  • Rating: +33/-0
    • View Profile
    • ticalc.org
Re: Casio Prizm - Color graphic calculator
« Reply #225 on: October 11, 2010, 11:11:19 pm »
The really old TI-83's actually used a physical Z80, coupled with some fancy memory mapping hardware to let it access all of it's "ROM". While this doesn't really apply to our example since the memory isn't Flash, the concept is similar. TI just found cheaper ways to implement these schemes. They kinda ... stuck with us.

I figure that this information is only valid for your good ol' Ti-73's, TI-83+/84+(SE)s and perhaps a select few other calculators. You'd have to ask around for how the Ti-89 calcs work, though I think they work in a similar way. The Nspire is completely different and ... well. I'm not the person to ask.

I don't know whether they used a physical Z80 or not, but the TI-85 and 86 also used similar paging schemes. The 85, IIRC, used paged ROM (RAM was just 32K and not paged), and the 86 used paged ROM and RAM. The 81, being the first TI graphing calculator and very primitive compared to its successors, had no paging at all—it was just straight 32K ROM + 8K RAM, IIRC.

I'm not for sure how the 68K calcs are mapped, but I believe that the whole memory map (RAM, ROM, and ports) is “flat” without paging since the address size is much larger. (At least, I didn't have to deal with bank switching when writing programs like Flash Archive Undelete, which scans the whole archive portion of flash, so that at least isn't bank-switched). Someone more knowledgeable would have to answer this for sure, though.
ticalc.org staff member—http://www.ticalc.org/

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Casio Prizm - Color graphic calculator
« Reply #226 on: October 11, 2010, 11:13:33 pm »
The reason why the Nspire takes so long to load at startup I think is because the OS is like 21 MB large or something. It takes over half of the entire archive memory (and RAM when loaded). The fact it is ran from RAM is why we are unable to install OS mods and the like. Every reboot, the entire OS would be reverted back to normal. :(

Offline TravisE

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 182
  • Rating: +33/-0
    • View Profile
    • ticalc.org
Re: Casio Prizm - Color graphic calculator
« Reply #227 on: October 11, 2010, 11:17:06 pm »
From what I remember, platforms like the Nspire and modern PCs tend to copy ROM to RAM because RAM is faster, but my understanding is that the Z80 and 68K calcs execute most code directly from flash ROM (though archived variables and programs are temporarily copied to RAM on the 89/92+/V200; probably the same with Z80s but I'm not really a Z80 person). I figure the processors in those calculators are not fast enough for the speed difference between RAM and ROM to have a significant impact on performance.
ticalc.org staff member—http://www.ticalc.org/

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: Casio Prizm - Color graphic calculator
« Reply #228 on: October 12, 2010, 12:28:33 am »
IIRC, the 84+ ran on 15MHz, and not 16MHz.
Former Coder of Tomorrow


Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Casio Prizm - Color graphic calculator
« Reply #229 on: October 12, 2010, 12:36:42 am »
The TI-89 and other 68k calcs have 24-bit memory addressing, so there is no need for swapping any memory cause that's 16MB of space to use. The OS is run from the Flash ROM (I think the Flash is fast enough to handle it, since the processor runs at ~15MHz or less; I don't know the exact details but different models have different processor speeds). Normal programs are loaded into RAM. I have no idea what happens with applications.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Casio Prizm - Color graphic calculator
« Reply #230 on: October 13, 2010, 10:56:02 am »
Sort of related question: How is the 83+'s RAM organized? If executing programs get copied to $9D95, wouldn't it overwrite stuff in RAM?




ASHBAD_ALVIN

  • Guest
Re: Casio Prizm - Color graphic calculator
« Reply #231 on: October 13, 2010, 12:33:26 pm »
I believe it pushes everything to a different point in RAM (near the end) and then pops the pogram to $9D95.  Not to be confused with the stack -- I just like using the words push and pop ;)

This is why programs never overwrite each other -- TI did some good programming work on their calculators ;D

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Casio Prizm - Color graphic calculator
« Reply #232 on: October 13, 2010, 12:42:53 pm »
TI did some good programming work on their calculators

[Cough] B_Call 4CBD [/Cough]
« Last Edit: October 13, 2010, 12:44:39 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

ASHBAD_ALVIN

  • Guest
Re: Casio Prizm - Color graphic calculator
« Reply #233 on: October 13, 2010, 12:49:29 pm »
* ASHBAD_ALVIN looks in the TI developers SDK for a minute :D

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Casio Prizm - Color graphic calculator
« Reply #234 on: October 13, 2010, 12:51:58 pm »
It wastes CPU cycles. Brandonw renamed it B_call DoNothing ;)
« Last Edit: October 13, 2010, 12:53:02 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

ASHBAD_ALVIN

  • Guest
Re: Casio Prizm - Color graphic calculator
« Reply #235 on: October 13, 2010, 12:57:26 pm »
Never heard of it, but sounds like something TI would pull :D jk

they might have a purpose such as wasting time so that the LCD won't garble images if you send them too quick or something

But even then, I think you can do it much easier (and efficiently) with some NOPs or loading the buffer methods :P
« Last Edit: October 13, 2010, 12:57:52 pm by ASHBAD_ALVIN »

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Casio Prizm - Color graphic calculator
« Reply #236 on: October 13, 2010, 01:01:32 pm »
Wasting time can occasionally be good, but there's no need to make a 4 byte b_call for it, as far as I am aware.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

ASHBAD_ALVIN

  • Guest
Re: Casio Prizm - Color graphic calculator
« Reply #237 on: October 13, 2010, 01:02:52 pm »
How many T states does it waste exactly?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Casio Prizm - Color graphic calculator
« Reply #238 on: October 13, 2010, 01:12:30 pm »
I'm not sure. His documentation of it is rather uninformative for that particular B_call.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Casio Prizm - Color graphic calculator
« Reply #239 on: October 13, 2010, 01:40:22 pm »
The TI-89 and other 68k calcs have 24-bit memory addressing, so there is no need for swapping any memory cause that's 16MB of space to use. The OS is run from the Flash ROM (I think the Flash is fast enough to handle it, since the processor runs at ~15MHz or less; I don't know the exact details but different models have different processor speeds). Normal programs are loaded into RAM. I have no idea what happens with applications.
Hmm I was sure the 89T had 2.7 MB of flash or something O.o. Does it really have that much hidden memory?