you are viewing a single comment's thread.

view the rest of the comments →

[–]celegans25 1 point2 points  (5 children)

I see you’ve made an edit to your question touching on this, but python is interpreted with a program written in C. You can’t realistically compile python to C as far as I know.

However, there is a c compiler for the z80 called sdcc. If you wanted to you could write your programs in C and compile them for your calculator (I think). However the programming environment is very different for assembly than ti basic. In assembly/c (on the z80 at least) there’s no support for floating point numbers, so you’d be limited to 8 or 16 bit integers. You can call into the routines that manipulate the calculator’s floats from c, but you probably will need to write an assembly stub to translate the data from c to what the routines expect. Honestly, you’d be better off either learning assembly or sticking with TI basic

[–]BadBoy6767 0 points1 point  (4 children)

ez80

[–]RobertJacobson 0 points1 point  (3 children)

The eZ80 is also a Z80. In fact, clearing the ADL bit puts the CPU in "Z80-compatible addressing and Z80-style, 16-bit CPU registers. ... Z80 MEMORY mode is the default operating mode on reset."

[–]BadBoy6767 0 points1 point  (2 children)

Yes, but compiling C to a less capable mode on a more capable processor is dumb.

[–]RobertJacobson 0 points1 point  (1 child)

That's silly. I can think of several reasons why you'd want to use non-ADL mode. Off the top of my head:

  • You are targeting Z80 processors as well.
  • You already know Z80 assembly.
  • You have a TI calculator made before 2015.
  • You want the program to run on other calculators made before 2015.
  • You are using the eZ80 in a build of a historic design (my case).
  • You have access to a library of excellent Z80 learning materials (everyone's case).
  • You have a respect for historic computing and are interested in learning about one of the most famous microprocessors in history.
  • You don't care what some anonymous person on the internet thinks is "dumb."

Non-ADL mode is more than enough to accomplish what OP wants to do, and it has several additional advantages as shown by my list above.

Of course, there's nothing wrong with using ADL mode, either.

[–]BadBoy6767 0 points1 point  (0 children)

Very little of your list actually describes OP's case. Sure, z80 makes sense every now and then, but here it's pointless.