The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

Calculator Programming Questions

Started by Dudeman313, January 28, 2016, 12:10:42 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dudeman313

I was just wondering a couple things about calc programming.

- How come Axe cannot be used for color calculators?
- Could an ASM prgm on a TI-84+ run using the exact same code on a CE?
- What about basic?
- Technically, shouldn't the TI-84+ CE be able to display grayscale?
- What would happen if you sent a .8xp TI-BASIC prgm made on a TI-84 to a color calculator and tried to run it?
- How hard would porting be from the TI-84+ to a TI-84+ CE?
Does this qualify as a signature? 
The answer is "Sure."


c4ooo

Quote from: Dudeman313 on January 28, 2016, 12:10:42 am
- How come Axe cannot be used for color calculators?
- Could an ASM prgm on a TI-84+ run using the exact same code on a CE?
- What about basic?
- Technically, shouldn't the TI-84+ CE be able to display grayscale?
- What would happen if you sent a .8xp TI-BASIC prgm made on a TI-84 to a color calculator and tried to run it?
- How hard would porting be from the TI-84+ to a TI-84+ CE?

-The CE and SE have different CPUs; the SE, CSE, and CE all have different methods for drawing to the screen. Axe will need to be rewritten to compile to the CSE or CE.
-No, once again, the two use diiferent CPUs
-Yes; if it pure basic
-You can display the colors white grey, as well as different shades of grey, but it is still different from how the lcd works on the regular ti84.
-Some aspects will look different, but it will 'work'.
-Porting asm or tibasic?

Dudeman313

Does this qualify as a signature? 
The answer is "Sure."


Snektron

The Ti-84+ CE's processor (ez80) is actually a kind of 24 bit processor. While most of the opcodes are the same it for example needs 24 bit addressing instead of 16 bit (ld hl, 0x1234 would be 0x21 0x34 0x12 on the Z80, but 0x21 0x34 0x21 0x00 on the eZ80).
Also axe cannot be used for the CSE because the OS's routines are different. You could probably write a patcher for it, but writing your own compiler would be easier...
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dudeman313

Oh, alright.
Can a TI-84+ Silver C and a TI-84+ CE run the same programs?
Or could a TI-84 SE and a TI-84 SC run the same programs?
Does this qualify as a signature? 
The answer is "Sure."


DJ Omnimaga

January 28, 2016, 02:07:21 am #5 Last Edit: January 28, 2016, 02:09:00 am by DJ Omnimaga
@c4ooo sometimes it's not just the hardware differences that breaks ASM compatibility between calculators, but also TI-OS differences. Some memory areas change between each model, so all games and softwares requires some modifications to work on the new model and vice-versa. With the color models you also have to change how stuff is displayed on the different screen.

This is why TI-83 ASM programs will not work on the TI-83 Plus. This is a tutorial on getting programs to work between the 82, 83 and 83+ by the way, but it's old, so it doesn't exclude the color models. http://tifreakware.net/tutorials/multi/unification.html

BASIC games for the 83 will often run on the 83+ and CSE ones will run on the CE if they use no ASM libraries, because the language is nearly identical between both calcs and unlike ASM and Axe, it is interpreted and built into the OS. But picture format is different between color and monochrome models.

Dudeman313

But what about ASM programs between the TI-84+ CE and TI-84+ Silver C? Are they the same, like ticalc.org implies?

EDIT: :walrii:
Does this qualify as a signature? 
The answer is "Sure."


Unicorn

Quote from: Dudeman313 on January 28, 2016, 02:17:36 am
But what about ASM programs between the TI-84+ CE and TI-84+ Silver C? Are they the same, like ticalc.org implies?

The ASM programs are not the same, but the BASIC ones are, as long as the BASIC ones don't require Doors CSE



??? ??? ??? ??? ???

Dudeman313

I guess I'm getting a TI-84+ CE then. :P
Does this qualify as a signature? 
The answer is "Sure."


Dudeman313

To port something like Line++ to the CE that I just got yesterday, what would need to be changed in the code, or would a rewrite be required? If anyone could help me, this could be my first coding project.
Does this qualify as a signature? 
The answer is "Sure."


alexgt

Well Line++ is written in Axe and Axe isn't available for the CE so yes you would need to rewrite it :/

DJ Omnimaga

Yeah and I doubt hybrid BASIC would be fast enough for such game (scrolling-wise). You would need to do it in C unless you don't mind only getting a few frames per second. Perhaps it could be adapted to hybrid BASIC once DCE comes out by having the screen only scroll once you reach the top, like in Super Mario Bros 2 USA, but such game would still be hard to make anyway.

Dudeman313

Oh.
:P
I wonder how that Mario for the CE is going?
Does this qualify as a signature? 
The answer is "Sure."


SiphonicSugar

Quote from: DJ Omnimaga on February 01, 2016, 04:34:06 pm
Yeah and I doubt hybrid BASIC would be fast enough for such game (scrolling-wise). You would need to do it in C unless you don't mind only getting a few frames per second. Perhaps it could be adapted to hybrid BASIC once DCE comes out by having the screen only scroll once you reach the top, like in Super Mario Bros 2 USA, but such game would still be hard to make anyway.

Wait, what's that?
I'm just trying to grab some inspiration. :P

alexgt

If you are wondering what Hybrid basic is, it is Ti-BASIC but with Asm code in it to make it mush faster. You can also use libraries. Anyone can correct me if I am wrong since I have never really used it :P

Powered by EzPortal