CodeWalrus

General => General Help & Troubleshooting => Topic started by: Dudeman313 on January 28, 2016, 12:10:42 AM

Title: Calculator Programming Questions
Post by: Dudeman313 on January 28, 2016, 12:10:42 AM
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?
Title: Re: Calculator Programming Questions
Post by: c4ooo on January 28, 2016, 12:18:39 AM
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?
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on January 28, 2016, 12:23:26 AM
Quote
Quote from: c4ooo on January 28, 2016, 12:18:39 AM
-Porting asm or tibasic?

Both.
Title: Re: Calculator Programming Questions
Post by: Snektron on January 28, 2016, 12:45:15 AM
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...
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on January 28, 2016, 01:48:16 AM
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?
Title: Re: Calculator Programming Questions
Post by: Dream of Omnimaga on January 28, 2016, 02:07:21 AM
@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.
Title: Re: Calculator Programming Questions
Post by: 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?

EDIT: :walrii:
Title: Re: Calculator Programming Questions
Post by: Unicorn on January 28, 2016, 02:20:54 AM
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
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on January 28, 2016, 03:14:51 AM
I guess I'm getting a TI-84+ CE then. :P
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on February 01, 2016, 04:30:39 PM
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.
Title: Re: Calculator Programming Questions
Post by: alexgt on February 01, 2016, 04:31:41 PM
Well Line++ is written in Axe and Axe isn't available for the CE so yes you would need to rewrite it :/
Title: Re: Calculator Programming Questions
Post by: Dream of 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.
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on February 01, 2016, 04:35:09 PM
Oh.
:P
I wonder how that Mario for the CE is going?
Title: Re: Calculator Programming Questions
Post by: SiphonicSugar on February 01, 2016, 10:14:28 PM
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?
Title: Re: Calculator Programming Questions
Post by: alexgt on February 02, 2016, 02:45:29 AM
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
Title: Re: Calculator Programming Questions
Post by: SiphonicSugar on February 02, 2016, 05:57:32 AM
No, I meant the Mario game.  :P
Title: Re: Calculator Programming Questions
Post by: Dream of Omnimaga on February 02, 2016, 06:00:29 AM
Quote from: Dudeman313 on February 01, 2016, 04:35:09 PM
Oh.
:P
I wonder how that Mario for the CE is going?
I think it died when Mateo went on hiatus, but we never know: Maybe it will be revived one day, since he came back? He also posted the source.
Quote from: alexgt on February 02, 2016, 02:45:29 AM
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
Yep, hybrid comes from the fact you basically use both TI-BASIC and ASM, where the ASM is from the libraries you are using. Pure TI-BASIC is TI-BASIC with no ASM libraries inside the code (ASM can be used to generate special characters to insert in the BASIC code, but not to execute parts of the game)
Quote from: SiphonicSugar on February 02, 2016, 05:57:32 AM
No, I meant the Mario game.  :P
https://www.cemetech.net/forum/viewtopic.php?t=11928
Title: Re: Calculator Programming Questions
Post by: SiphonicSugar on February 02, 2016, 10:30:22 PM
Yep, hybrid basic is pretty amazing... It's great... :P
Title: Re: Calculator Programming Questions
Post by: alexgt on February 02, 2016, 11:42:00 PM
Yp some cool stuff can really be made ;)
Title: Re: Calculator Programming Questions
Post by: Dream of Omnimaga on February 03, 2016, 02:16:17 AM
Yeah. Usually the games can be made to rival ASM games in terms of graphics and animations, although the speed will be obviously lower.
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on February 04, 2016, 10:49:17 PM
DoesTI-oyCSEworkotehCEAswerASAP,mymomiswatchigmyeverymove.

Sorry.Iammissigsomekeyfuctios
Title: Re: Calculator Programming Questions
Post by: SiphonicSugar on February 04, 2016, 11:43:52 PM
Wha...?
Title: Re: Calculator Programming Questions
Post by: c4ooo on February 05, 2016, 12:30:18 AM
Quote from: Dudeman313 on February 04, 2016, 10:49:17 PM
Does TI-Boy CSE work on the CE. Answer ASAP, my mom is watching my every move.

Sorry. I am missing some key functions.
Fixed :P
Title: Re: Calculator Programming Questions
Post by: SiphonicSugar on February 05, 2016, 12:37:53 AM
Quote from: c4ooo on February 05, 2016, 12:30:18 AM
Quote from: Dudeman313 on February 04, 2016, 10:49:17 PM
Does TI-Boy CSE work on the CE. Answer ASAP, my mom is watching my every move.

Sorry. I am missing some key functions.
Fixed :P
I'm pretty sure it doesn't, because again, the CE and CSE have different types of processors, so no ASM program should work on both of them.

Also, what do you mean your mom is watching your every move? Are you supposed to be doing homework? :P
Title: Re: Calculator Programming Questions
Post by: Dream of Omnimaga on February 05, 2016, 02:35:04 AM
Quote from: Dudeman313 on February 04, 2016, 10:49:17 PM
DoesTI-oyCSEworkotehCEAswerASAP,mymomiswatchigmyeverymove.

Sorry.Iammissigsomekeyfuctios
Let's make sure posts are readable, please.

If I gather what you mean, you ask if TI-Boy CSE works on the CE, right? Well, it doesn't. No CSE ASM program will run on the CE nor vice-versa.
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on February 05, 2016, 07:41:35 PM
It needs to be ported. The three keys I'm missing at home are "b" "n" and " ". I'm @ school now.

My mom makes me use our 50" Vizio for my computer, 'cause she thinks I'm always playing games on my laptop instead of doing my homework.
Title: Re: Calculator Programming Questions
Post by: Dream of Omnimaga on February 06, 2016, 05:44:35 AM
Ah I see now. Can you use the computer when your chores and homework are done, though? :P

But yeah porting calc games and programs requires time and motivation. Sometimes, it's better if people attempt it themselves instead of waiting and begging.
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on February 06, 2016, 06:49:41 PM
I would definitely port games if I could!

Also, my mom doesn't approve of me playing games at all. ANYWHERE. This is why I've never owned video games. The one my aunt bought me for Christmas is sitting in a dump somewhere.
For some strange reason, she'll tell me I've been playing on the computer even if I've only been rearranging things with the File Explorer.
Title: Re: Calculator Programming Questions
Post by: Unicorn on February 07, 2016, 04:16:09 AM
Quote from: Dudeman313 on February 06, 2016, 06:49:41 PM
I would definitely port games if I could!

Well maybe you should try to learn how!
Title: Re: Calculator Programming Questions
Post by: Dream of Omnimaga on February 07, 2016, 04:47:20 AM
Quote from: Dudeman313 on February 06, 2016, 06:49:41 PM
I would definitely port games if I could!

Also, my mom doesn't approve of me playing games at all. ANYWHERE. This is why I've never owned video games. The one my aunt bought me for Christmas is sitting in a dump somewhere.
For some strange reason, she'll tell me I've been playing on the computer even if I've only been rearranging things with the File Explorer.
To be honest I don't like parents like that. It's like if you lived in North Korea in some ways. I am fine if parents limit kids and teens to 1 hour of gaming a day or 30 minutes when there is homework, and perhaps that could be applied to computer access (for hobbies) too, but disallowing playing games outright seems overkill. What will happen if you decide to learn programming?
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on February 07, 2016, 10:03:44 PM
I know! Part of this might be that my mom is from Yorubaland(Nigeria), but she classifies everything that's not school-related as "playing games." The only reason why I can post right now is because my mom doesn't know my "new phone" which us really just my dad's old one' because she'd never let me have a smartphone, has WiFi access. Considering it's a Nokia E63, I wouldn't have guessed that either. And when I tried to learn some coding basics from Khan Academy, it was also classified as a game. :walrii:
Title: Re: Calculator Programming Questions
Post by: Unicorn on February 08, 2016, 07:49:49 AM
I agree with DJ. It is god if your parents limit time on a comp, to try an get self ontrol going, but if its that bad it geta a little overkill.
But I bet your mom thinks she has your bests intrests at heart when she does that.

Also, if you are on a litte fliphone thing how do you use walrusirc?
Title: Re: Calculator Programming Questions
Post by: Dudeman313 on February 08, 2016, 01:44:10 PM
The Nokia E63 isn't a flip. I use WalrusIRC at school.
I can also use it when my mom gets off work late.