The shoutbox is currently out of service. Join us on Discord instead.
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


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

Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ 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?

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.

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

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.

DJ 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?

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