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.


Messages - yoshi13

Pages: [1] 2 3
1
Miscellaneous / Re: A small survey!
« on: October 01, 2010, 07:32:01 am »
Thank you everyone for all the help. Have a good weekend. :)

2
Miscellaneous / Re: A small survey!
« on: September 19, 2010, 04:26:52 am »
Thanks guys for all the surveys. Only 35 more to go. :)

3
Miscellaneous / A small survey!
« on: September 18, 2010, 09:15:22 pm »
Hey, I have to survey a range of people for school and was wondering if anyone here would be kind enough to help.

It's just a quick survey about your physical activity and can easily be completed in 2 minutes.

If you are able to help could you please complete the following document and then attach it to your post so I can collect the results.

Thanks for your time and help,
                                 yoshi ;)


PS: Sorry for not being very active but school started to pile up.... hopefully I can find sometime to code some nSpire programs

4
Calculator C / Re: Post your Nspire routines here!
« on: May 23, 2010, 01:55:33 am »
BTW that returns time in seconds.
I wonder if its possible to access it in milliseconds (for framerate counting purposes).

Yeah. I was hoping it would be in milliseconds but at least we can make a stopwatch now...

btw what is the first and second time on : http://hackspire.unsads.com/wiki/index.php/Memory-mapped_I/O_ports#90060000_-_Watchdog_timer ? I know the watchdog timer makes it reset after x amount of time if there is a hang but I don't get what the first and second timer do...

5
Calculator C / Re: Post your Nspire routines here!
« on: May 22, 2010, 08:55:56 pm »
Thanks to bwang, to access time use
Code: [Select]
int time = * (unsigned*) 0x90090000

6
General Calculator Help / Re: INstalling ndless....AGAIN....Fml..
« on: May 19, 2010, 08:48:39 am »
Put it in a folder called userfiles (make this) named as "tinspire_1.1.tno" in the same directory as the ndless folder is in. (If you go into the folder it should have a few different files and folders called "src","arm" etc)

For instance C:/Nspire/userfiles is where you put the file and C:/Nspire/Ndless is the ndless folder

7
Calculator C / Re: Post your Nspire routines here!
« on: May 19, 2010, 03:40:15 am »
Nah.... I have atleast 2 and a half years left using the calc to I will try and keep going to then... :]

8
Calculator C / Re: Post your Nspire routines here!
« on: May 19, 2010, 03:00:01 am »
I changed the program so the integers no longer use malloc. I am going to take a break from text routines and the paint program I am working to relearn C since I have spent so much time using Java and C++ and find it hard to go back to a lower-level language.

Thanks for the help, I hope to be more useful in the future,

9
Calculator C / Re: Post your Nspire routines here!
« on: May 17, 2010, 05:27:36 pm »
I know that you don't need to call malloc() for integers but for certain ones it used to crash the calc if I didn't declare them so I have just declared them all until I have a chance to sort through them a fix the bug.

And by the sprite_routine() are you referring to the way you drew the imps in your Ray Caster program.

Thanks for the help, I haven't ever used C before and I haven't done any normal programming since last year.. (just been messing around with command prompt, getting it to crash my brother's computer)

I will go over some tutorials and source code after school and to change up the code a bit and possibly try and use vertices so it's easier to make shapes.




10
Calculator C / Re: Post your Nspire routines here!
« on: May 17, 2010, 03:15:31 am »
Here is the current state of the routines I have, I will continue to update these:



Ok... The alphabet routines are set up except I haven't had a chance to write the code for actually drawing the letters
(I know that A has code in it but it draws an incomplete hourglass as I was just testing if I could get it to work)

The Drawing routines only contain a square, rectangle and 4 directional line drawer, I will add the triangle and circle later
(The circle is throwing up a bunch of weird errors right now)

Note: The length of strings is currently set to 1 (ie only 1 letter, this can be changed in alphabet.c line 56) as I can't use strlen() without it causing problems with malloc (more precisely sizeof) and spaces as I am temporarily using them to terminate the for loop.

I also attacked my common.h header as it has an extra 15 or so controls already put in



This will help those wanting to add new keys (thanks for the link bwang):

http://hackspire.unsads.com/wiki/index.php/Memory-mapped_I/O_ports#900E0000_-_Keypad
bit 0 to 10 =  1, 2, 4, 8, 10, 20, 40, 80, 100 , 200 , 400 if you are a bit confused on that part

11
Miscellaneous / Post your Wallpaper!
« on: May 16, 2010, 02:06:32 am »
Show your desktop wallpaper to the whole world:

Here is mine:


12
Calculator C / Re: Program Resets nSpire CAS
« on: May 16, 2010, 01:33:56 am »
I am finally getting somewhere with the program after getting Windows to compile programs (saving about 10 minutes a test). But how do you capture the screen? when I go into programs and click capture the computer just says Processing Request for ages.

13
Calculator C / Re: arm-elf-gcc Compiling error
« on: May 16, 2010, 12:06:27 am »
Just a little addition:

I finally got it to work on windows by installing mingw then msys, if you don't install mingw first you get problems with MakeTNS.


14
Calculator C / Re: Program Resets nSpire CAS
« on: May 15, 2010, 03:11:43 am »
Do I use malloc() by
Code: [Select]
int location[320][240]; malloc(sizeof(location * 320 * 240)); or by something like
Code: [Select]
malloc(location[320][240]

This is my second day using C and I haven't used C++ in a while so I am a bit fuzzy on everything.

I am using the array to store the color of the the pixel while the cursor is set at that location so I can restore it after the cursor is moved to the next pixel.

P.S. Do you have the addresses of the other keys, especially The clickpad and the clickpad button, I have no idea where to start when looking for key addresses

I was just reading up on some stuff... am i supposed to use something like this for every variable I declare
Code: [Select]
int i malloc(sizeof(i)); int location[320][240] malloc(sizeof(location*320*240)); [/color]

P.S. I know it would use less memory if I just checked the location of the pixel saved it to an int then moved across and changed back the last visited pixel to the right color, however I was later going to use the 240*320 array to save the drawing .

15
Calculator C / Re: What C commands are not supported?
« on: May 15, 2010, 02:32:03 am »
If you read on it says that MakeTNS is used to add this to binary files. So when you compile it calls MakeTNS and adds the header while changing it into a .tns file readable by the calculator.

I think you can also just add this
Code: [Select]
asm(".string \"PRG\"\n"); to the top of your file just below the included headers as shown in the demo program.

Pages: [1] 2 3