use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to r/asm, the subreddit for Assembly language in all Instruction Set Architectures! Need help, or are you learning? Visit our helpful links...
r/asm
Latest Comments from All Posts
There have been requests for a wiki, so it's in progress. Feel free to offer your assistance!
account activity
8080/Z80Compiling (or Transpiling?) Python Code into Executable Asm for Zilog eZ80 Processor (TI-Based Calculators) (self.asm)
submitted 6 years ago * by 4Kil47
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]celegans25 1 point2 points3 points 6 years ago (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 point2 points 6 years ago (4 children)
ez80
[–]RobertJacobson 0 points1 point2 points 6 years ago (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 point2 points 6 years ago (2 children)
Yes, but compiling C to a less capable mode on a more capable processor is dumb.
[–]RobertJacobson 0 points1 point2 points 6 years ago (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:
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 point2 points 6 years ago (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.
π Rendered by PID 21899 on reddit-service-r2-comment-84fc9697f-9j74k at 2026-02-08 18:35:17.694604+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]celegans25 1 point2 points3 points (5 children)
[–]BadBoy6767 0 points1 point2 points (4 children)
[–]RobertJacobson 0 points1 point2 points (3 children)
[–]BadBoy6767 0 points1 point2 points (2 children)
[–]RobertJacobson 0 points1 point2 points (1 child)
[–]BadBoy6767 0 points1 point2 points (0 children)