C for the Zilog Z80?
I've been tinkering abit with my new graphing calculator, it's a TI 84 Plus. Wikipedia says that it supports C if you have a computer with a cross-compiler, well, after some googling i came up with a compiler called SDCC, which can compile code for the Z80, but this is as far as i got.
After compiling a small Hello World with my new compiler, i didn't get the usual "exe" file (Was kind of expecting this, since Z80 isn't an X86), instead, i got 8 or 9 files, all called main, and with different extensions (.mem .sym .rst and so on), but the software i use for interfacing with my calculator won't accept any of them, it just says that the device doesn't support this kind of file...
Where do i go from here?
The first step is to figure out WHAT file your calculator WILL accept - if any.
Well, the interface software comes with it's own IDE for writing BASIC programs for the device, and the files i can create in there is either .8xp or .tpf....
Originally Posted by matsp
What's the name of the s/w you already have for loading programs, and does it have any online documentation.
There are (I think) several problems to solve:
- the object file formats of SDCC and your existing tools
- where in memory object files are loaded, are images located absolutely or relatively.
- how to call the resident API on the target, for say input and output.
/me bows to Dave's google skills
The software i'm using to interface with the calculator is called TI-Connect, i don't think i can connect to it in any other ways...
Originally Posted by Salem
Regarding the input/output on the TI84, is was under the impression that i would just be able to use stdout/stdin as on most other platforms?
I'm not sure if i understand the second problem you are mentioning?
Well, most of the sites dedicated to the TI calculators are about assembly or BASIC, i've been unable to find anything about C?
Well just look at the ASM information available.
Then look at what say "gcc -S prog.c" produces (which will also be the ASM) and go from there.