Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - compu

Pages: 1 [2]
16
Calculator C / Non-blocking serial read-function?
« on: July 27, 2011, 06:19:26 am »
I have a small question about Nspire C:
Is there a non-blocking function to check if data is available for reading at the serial port?

17
Calculator C / PDF Tutorial - Your first Nspire C program
« on: June 19, 2011, 02:54:53 pm »
Since I'm not really working on this anymore, I think I should share it with you.

It describes how to setup an ndless development environment and how to make your first program in C (with screenshots ;D)

If there are any english/grammar fails or if I made any mistakes, please tell me.

18
Web Programming and Design / Nspire Online Compiler
« on: May 02, 2011, 03:20:31 pm »
I made a small tool that lets you upload a zip archive containing source code of an nspire program and compiles it.
You can modify the EXE and OBJS variables in the makefile to whatever you want.
http://compu.vortexirc.com/compiler/

It uses arm-elf-gcc 4.4.6 because I have problems to get 4.5 to work.
__builtin_unreachable() was added in 4.5 so you will always get a warning:
Code: [Select]
/home/julian/ndless/include/os.h: In function 'exit':
/home/julian/ndless/include/os.h:389: warning: implicit declaration of function '__builtin_unreachable'

19
TI-Nspire / Rooted Nspire document browser
« on: April 21, 2011, 02:47:34 pm »
By changing some strings in the OS image, you can make the document browser view all files in all folders.
I can't publish it here because I have changed the values in the phoenix.raw file.
Screenshots:

20
Calculator C / C++ on the Nspire?
« on: March 27, 2011, 01:32:22 pm »
I have tried to run C++ on the Nspire by replacing gcc with g++ in nspire-gcc, but the linker spams me with error messages then.
I got this to work once (with r349 I guess), so I was able to make a class with a function that prints something to RS232, but I was unable to use functions of libndls. I don't know how I exactly did this anymore (I reinstalled windows), so my question is, how can I get C++ to work again? If there is a chance to do this, wouldn't it be nice to include an nspire-g++ into ndless then?

21
Calculator C / Best way for random number generation?
« on: March 04, 2011, 03:27:29 pm »
Hi, I have to generate random numbers on the Nspire... Till now I have been using this function:
Code: [Select]
int random(int max)
{
    unsigned int *counter = (unsigned int *) 0x9001000C;
    return *counter/(65535/max);
}
(same way as in nTris)

This works fine for me on the emulator, but on real hardware It often gives the same numbers :(
In my case I'm using random(3) for random level generation in Shunledge (whole source here, topic here).. so, what could be a better way to do this?

PS: Yes, I have initialized the timer ;)

22
Nspire I/O / Nspire I/O
« on: March 03, 2011, 03:21:21 pm »
Hi, here is a collection of text input/output functions for the TI-Nspire ;D

Demo program:


Basically these functions are included:
  • Simple text output
  • Formatted text output (printf-like)
  • Char input
  • String input

Download and more information can be found at nspforge (here).

So if you found any bugs, got suggestions or I did any mistakes with this please let me know, because I don't have much experience with Nspire programming... :)

23
Calculator C / vsprintf() doesn't work
« on: February 24, 2011, 01:42:29 pm »
Hey, I wanted to make an on-screen console for the nspire.
Normal text output works fine, but i wanted an sprintf()-like function to output text, so I made this function:
Code: [Select]
void c_swrite(struct console *c, char* format, int len, char bgColor, char textColor, ...)
{
char buf[len];
memset(buf,'\0',sizeof(char)*len);
va_list arglist;
va_start(arglist,textColor);
vsprintf(buf,format,arglist);
c_write(c,buf,bgColor,textColor);
va_end(arglist);
}

Always when this function reaches vsprintf, the emulator crashes.

Code: [Select]
Error at PC=102F45C0: Unaligned read_word: 1800e0ed
         Backtrace:
Frame     PrvFrame Self     Return   Start
1800E0B0: 1800E0E8 1800E0B4 1106E9DC 102F4210
1800E0E8: 1109CA20 00000000 1800E934 1106E5A4

I have attached my whole source.
So, what am I doing wrong?

24
Calculator C / Tool to Convert BMP into C array
« on: February 21, 2011, 02:18:58 pm »
Hi, does someone know a tool that converts .bmp files into a C array?
It really sucks to do this manually, especially at larger picutes :-\

25
TI-Nspire / Shunledge for nSpire
« on: February 12, 2011, 05:21:20 pm »
Shunledge

In this game you have 3 seconds time to memorize holes in the ground before it disappears in a cloud.
Then you have to reach the other side by jumping over these holes.

Controls:
Right/6 - Move forward
Up/8/Ctrl - Jump

The project page at nspforge can be found here.

I still need a new cloud sprite. If you want to create it for me look here.

Screenshot:


Download

26
Art / 16x16 textures request
« on: February 12, 2011, 03:08:31 pm »
Hi, because i suck at pixel art and i have seen alot of nice pictures here already, I would like to request some textures.

First of all, i need a 16x16 stone texture that can be repeated horizontally, and a cloud texture as well.
Also I would like to have a texture that is half stone and half cloud and a 32x16 player sprite.
I need all of them in 16 grayscales.

Thanks in advance :)

27
TI-Nspire / 1337mod for Nspire
« on: February 11, 2011, 03:19:26 pm »
1337mod for Nspire

Hi, i was messing around with the OS files a bit today and I made a small tool in C that replaces the English (U.S.) language file with 13375P34K ;D

Just transfer both the 1337mod.tns and the 1337_resources.tns to your Nspire and make sure that
both files are located in your document's root directory, otherwise this will not work.
Then click on 1337mod.tns and a message will popup that the installation was successfully, after this the calculator will reboot.
It might be a bit buggy, for example you can't see the calculator's free space, but it should work fine.

Refer to the readme.txt to see how to undo this.

28
TI-Nspire / Vectorrace for nSpire
« on: February 07, 2011, 03:58:30 pm »
Vectorrace for TI-nSpire

This is a round based racing game made in TI-Basic.
Just tap enter to start. Your goal
is to reach the finishing line before your
opponent does. You have to pass the
Checkpoint and stay exactly on the finish!
Each move starts by pressing enter.
Insert the numbers 1-9 to move
(eg 6 for moving right or 2 for moving down).


This screenshot is currently in german, but i rewrote the game in english.

This game is only for 2 players.
Thanks to wRieDen for helping me making this game.

Download

Pages: 1 [2]