Join us on Discord!
You can help CodeWalrus stay online by donating here.

Pong for KnightOS - An example C project

Started by SirCmpwn, April 23, 2015, 12:43:25 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

SirCmpwn

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.

Duke "Tape" Eiyeron

  • Calculators owned: A lot.

Snektron

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
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


SirCmpwn

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/

Snektron

Oh great! Though i use mingw... ah it'll be fine probably, though i heard there was a lot of hate towards mingw
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


SirCmpwn

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).

Snektron

  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

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?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

SirCmpwn

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.

Ivoah

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.
  • Calculators owned: TI-86 (now broken), TI SR-56, TI-Nspire CX CAS, TI-84+ SE, TI-84+ SE, TI-85, TI-73 Explorer VS, ViewScreen, TI-84+ CSE, TI-83+ SE

Dream of Omnimaga

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 >.<
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

SirCmpwn

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.

SirCmpwn

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.

Dream of Omnimaga

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?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

SirCmpwn

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

Powered by EzPortal