Author Topic: PrizmIO  (Read 30703 times)

0 Members and 1 Guest are viewing this topic.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
PrizmIO
« on: July 18, 2012, 02:10:50 pm »
This is PrizmIO, a port of NspireIO for the Casio Prizm. You can now easily output text with printf in your apps!

Right now only char output (with 16 different colors!) and very limited input (\n) works (the rest is commented out), I intend the library to be as much compatible as the Nspire version (same function prototypes, so you can write code that compiles on both Nspire and Prizm).

Download the code on http://github.com/juju2143/prizmio
« Last Edit: July 18, 2012, 09:41:51 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: PrizmIO
« Reply #1 on: July 18, 2012, 09:27:41 pm »
Oh that looks nice. By the way is it mostly a command prompt or also a text routine? Your post seems to tell me it's also a text display routine to use in other apps

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: PrizmIO
« Reply #2 on: July 18, 2012, 09:34:40 pm »
It's a library you can use in your app to ease text input/output, nFrotz uses this, among others. It's like you're writing a computer program that uses cmd.exe.

Also original NspireIO topic: http://ourl.ca/9468
« Last Edit: July 18, 2012, 09:41:28 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: PrizmIO
« Reply #3 on: July 20, 2012, 12:58:10 am »
Nice project!

Easy portability between Nspire and Prizm code does sound like an awesome idea. Hope it really happens someday...




Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: PrizmIO
« Reply #4 on: July 20, 2012, 09:48:42 am »
YAY! Roguelike planned! (or not)

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: PrizmIO
« Reply #5 on: July 20, 2012, 10:38:55 am »
Nice work ;)

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: PrizmIO
« Reply #6 on: July 20, 2012, 10:54:23 am »
I just compiled just now, i'm giving you the binairies for the lazy guys.
Just put the .h in the include folder and the .lib file in the lib folder! :p

Compiled with Prizm-SDK 0.3

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: PrizmIO
« Reply #7 on: July 20, 2012, 11:08:30 am »
Thanks, nice work on your side too because all I did is to replace the SetPixel and getch routine, the rest (at least all that is related to display/keyboard) depends on them. (That and solving many weird compilation problems -_-)

And thanks Eiyeron for posting the binaries, keep in mind several functions are all stubs (reg_* and uart_*, getch only supports EXE) in this version. I think it's pretty enough to make lots of wonderful stuff. ^_^
« Last Edit: July 20, 2012, 11:28:51 am by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: PrizmIO
« Reply #8 on: July 20, 2012, 01:38:31 pm »
ooh, fancy =D
* shmibs is going to be checking this out.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: PrizmIO
« Reply #9 on: July 27, 2012, 01:21:34 am »
UPDATE: Input should work (some keys might be missing though, I should add more keys, tell me what you think) and instead of drawing the screen manually with Bdisp_something it's drawn pixel-by-pixel now (drawing the screen fully is rather slow but it might be more effective for redrawing single characters, but again, tell me what you think, I think I'll need lots of input on this.)

By now, the basic display input/output should work enough for making potable applications, it's just that initializing the console is slow, therefore this library is now released as beta. (Not tested this commit yet as I have some problems with my Prizm on this computer.)

EDIT: Now that I tested it, wtf the keys aren't even at the right place. ???
« Last Edit: July 27, 2012, 03:37:21 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: PrizmIO
« Reply #10 on: July 28, 2012, 05:18:34 pm »
UPDATE: Keyboard works fine now. Shift and Alpha works as expected, OPTN switches between lower and uppercase, feel free to suggest me a more complete keymap.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: PrizmIO
« Reply #11 on: July 28, 2012, 06:33:39 pm »
Nice to see this still updated. By the way, was the green text thing in TCAP earlier PrizmIO with new fonts?

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: PrizmIO
« Reply #12 on: July 28, 2012, 06:48:33 pm »
Don't think so. It still uses the same font. Tinychat cam quality is pretty blurry.

Might post binaries tonight. :P

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: PrizmIO
« Reply #13 on: July 28, 2012, 06:55:17 pm »
Ah ok, maybe it was some sort of terminal on your computer then?

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: PrizmIO
« Reply #14 on: July 28, 2012, 07:43:42 pm »
Yeah, that was my terminal with the PrizmIO code in it.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.