C++ basic compiler
Moderator: MaxCoderz Staff
-
- New Member
- Posts: 13
- Joined: Tue 29 Nov, 2005 8:10 pm
C++ basic compiler
I am working on a simple C++ program to turn a text file written as basic and turn it into a TI 83+ (8XP) file. Can anyone help me out on finding the file format or the codes for basic commands? I think I have a way of finding it out, but I want to make sure I doing it right. (it is friggin hard )
Welcome to Jamdung, poor people are dead at random, political violence caan done.
-Damian Marley
-Damian Marley
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
Turn it into a basic program or an ASM program. Both are pretty much the same filewise. There was a link I've forgotten about, but I got it from someone on this board or on detachedsolutions.com. The most important thing is the checksum which is ( I ~think~) the low order byte of the sum of the bytes in the program. A list of the symbols and commands and the hex equivalent can be found in ti83plus.inc. Good Luck!
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
I think z80 is 8 bit, though I might be wrong. And on TI Freak's Assembly Resource, there IS a z80 C compiler. The problem is C code is bloated compared to real z80.
#1 - Z80 is 8 bit
#2 - Both C++, TIGCC --and all other languages for that matter-- are slow and bloated compared to assembly and machine code.
#3 - The processor doesn't have to be any specific architecture or bus size. In fact, my flash expander prototype used C on an 8-bit AVR-series µcontroller.
@ FaveRave09: I'm not sure of how it works either, but I saw a BASIC token summary on ticalc not too long ago. With any luck, some has done an 83+ version by now as well.
#2 - Both C++, TIGCC --and all other languages for that matter-- are slow and bloated compared to assembly and machine code.
#3 - The processor doesn't have to be any specific architecture or bus size. In fact, my flash expander prototype used C on an 8-bit AVR-series µcontroller.
@ FaveRave09: I'm not sure of how it works either, but I saw a BASIC token summary on ticalc not too long ago. With any luck, some has done an 83+ version by now as well.
My diet consists of nails, code-stealers, and HP fans.
Projects:
Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
Projects:
Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
-
- Calc Wizard
- Posts: 526
- Joined: Tue 08 Mar, 2005 1:37 am
- Location: who wants to know?
- Contact:
I'm guess I'm guilty of exaggarating a bit there with the "bloated" talk. In relative terms, it's still tough to find to a C routine to runs as fast as an ASM version.
My diet consists of nails, code-stealers, and HP fans.
Projects:
Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
Projects:
Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
-
- Calc Wizard
- Posts: 526
- Joined: Tue 08 Mar, 2005 1:37 am
- Location: who wants to know?
- Contact:
-
- New Member
- Posts: 13
- Joined: Tue 29 Nov, 2005 8:10 pm
Thanks
whoa. way more info than I asked for (thanks). I must admit, I never thought of using the ti.inc file (hitting myself in the head with anuncooked noodle). but some people are interpreting the situation totally differently. I can't tell what you're thinking of, but it's not what I'm thinkin. thanks a lot anyway.
Welcome to Jamdung, poor people are dead at random, political violence caan done.
-Damian Marley
-Damian Marley
- MissingIntellect
- Regular Member
- Posts: 102
- Joined: Tue 21 Dec, 2004 2:46 pm
- Location: Santa Clarita, California
- Contact:
Re: C++ basic compiler
he's not doing a C->Z80 program, he's doing a BASIC->Z80 program written in C++. It still makes no sense, but at least we should argue about the right thing.FaveRave09 wrote:I am working on a simple C++ program to turn a text file written as basic and turn it into a TI 83+ (8XP) file.
-
- Calc Wizard
- Posts: 659
- Joined: Mon 20 Dec, 2004 4:00 am
- Location: My Computer/Someone else's computer
- Contact:
I hate to say it but y'know I can do pretty much the same thing with TI Graphlink 83+, except for replacing the Theta characters and the arrow characters.
"Not long ago, the Black Gate of Armonk swung open. The lights went out, my skin crawled, and dogs began to howl. I asked my neighbor what it was and he said, 'Those are the nazgul. Once they were human, now they are IBM's lawyers.'"
But isn't 68k ASM rather different from z80 ASM because you are handling so many more bytes in one register?tr1p1ea wrote:The C compilers which are targetted at the 68k processors have been in dev for a while and are quite decent. They code produced is STILL bloatware when compared to hand-coded ASM.
There are a few C compilers targetted at z80 but they are not very decent as far as calc dev is concerned.
and yay for 68k's built in multiplication!