You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

Pong for KnightOS - An example C project

b/[Inactive] KnightOS (TI-73/83+/84+/CSE) Started by SirCmpwn, April 23, 2015, 12:43:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

u/SirCmpwn April 25, 2015, 04:28:39 PM
Quote from: DJ Omnimaga on April 25, 2015, 06:51:07 AM
Does that include the CSE? I forgot if KOS automatically scaled program graphics up if they were ran on a color calc instead of monochrome.
Most KnightOS programs will work correctly on the CSE without any changes, in legacy mode. This simulates the older screen at 2x zoom. Then, if you choose, you can make your programs run in color mode, and take advantage of the full screen.

Quote from: Cumred_Snektron on April 25, 2015, 07:40:16 AM
Oh dear, building things... Someone will have to help me with this when i try this out >.<
It's very easy! I don't think you'll have trouble.
u/Duke "Tape" Eiyeron April 25, 2015, 04:32:15 PM
*Suddlenty, a wild Matref appears.*
u/Snektron April 25, 2015, 04:46:32 PM
Quote from: SirCmpwn on April 25, 2015, 04:28:39 PM
Quote from: Cumred_Snektron on April 25, 2015, 07:40:16 AM
Oh dear, building things... Someone will have to help me with this when i try this out >.<
It's very easy! I don't think you'll have trouble.

Maybe it's a good idea if someone writes a tutorial for this... and with support for win7 wo/ VS noobs... :3
u/SirCmpwn April 25, 2015, 04:49:27 PM
Quote from: Cumred_Snektron on April 25, 2015, 04:46:32 PM
Maybe it's a good idea if someone writes a tutorial for this... and with support for win7 wo/ VS noobs... :3
Windows users write KnightOS software on Cygwin, which provides a Unix environment. No VS required. Here's the tutorial you're after: http://www.knightos.org/documentation/tutorials/getting-started/
u/Snektron April 25, 2015, 04:50:31 PM
Oh great! Though i use mingw... ah it'll be fine probably, though i heard there was a lot of hate towards mingw
u/SirCmpwn April 25, 2015, 04:52:18 PM
Quote from: Cumred_Snektron on April 25, 2015, 04:50:31 PM
Oh great! Though i use mingw... ah it'll be fine probably, though i heard there was a lot of hate towards mingw
Mingw isn't supported and won't work, just use cygwin or you'll piss off everyone in #knightos when you come ask for help (it happens a lot).
u/Snektron April 25, 2015, 04:53:31 PM
Okay, will do :P
u/Dream of Omnimaga April 26, 2015, 04:53:47 AM
By the way, if it ever became clear that we will never be able to install third-party OSes on the 84+CE, will the CE version of KnightOS simply be downscaled to a shell like Mirage/DCS?
u/SirCmpwn April 26, 2015, 04:55:10 AM
Quote from: DJ Omnimaga on April 26, 2015, 04:53:47 AM
By the way, if it ever became clear that we will never be able to install third-party OSes on the 84+CE, will the CE version of KnightOS simply be downscaled to a shell like Mirage/DCS?
I don't know enough about the CE yet to really say anything like that.
u/Ivoah April 26, 2015, 12:36:34 PM
Quote from: DJ Omnimaga on April 26, 2015, 04:53:47 AM
By the way, if it ever became clear that we will never be able to install third-party OSes on the 84+CE, will the CE version of KnightOS simply be downscaled to a shell like Mirage/DCS?

There is a way to install 3rd party OSes on the CE, but it requires hacks that have not been disclosed yet.
u/Dream of Omnimaga April 26, 2015, 04:26:20 PM
Oh OK, I thought it absolutely required the 2048 bit RSA key. That said I am betting that as soon as hacks or third-party OSes using them come out, then TI will patch them >.<
u/SirCmpwn April 26, 2015, 05:15:09 PM
The 84+ CE is also so different from the other supported calcs that I'm not sure exactly how KnightOS support will take shape. A high quality port of KnightOS to the CE will take a lot of work, but will be really cool. And yeah, we need an exploit and there aren't any public ones yet. I don't have time myself to go hunting for exploits.
u/SirCmpwn April 27, 2015, 03:56:18 AM
I realized that I never really gave an update - the mini-project is effectively done now. The game works great and I was able to fix a few problems with KnightOS's C support while making it. The code is a great reference now for anyone else hoping to build projects for KnightOS in C.
u/Dream of Omnimaga April 27, 2015, 04:25:06 AM
Good to hear. :) I will need to check it out. I wonder how does the executable size compare with a TI-OS Axe or pure ASM one?
u/SirCmpwn April 27, 2015, 04:26:32 AM
Quote from: DJ Omnimaga on April 27, 2015, 04:25:06 AM
Good to hear. :) I will need to check it out. I wonder how does the executable size compare with a TI-OS Axe or pure ASM one?

It's 1719 bytes. You can get the package here: https://packages.knightos.org/community/pong
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal