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 - Goplat
Pages: 1 ... 11 12 [13] 14 15 ... 20
181
« on: March 15, 2011, 01:00:08 am »
The apparent dithering artifacts may just be JPEG artifacts. JPEG compressors will see an almost-solid-black area and compress the heck out of it under the assumption that such minute details must be unimportant, not knowing that to us it's actually the most important part of the image :p
182
« on: March 14, 2011, 06:27:45 pm »
I noticed a thread on TI-Bank where someone said his TI-Nspire CAS drained a set of batteries by 50% in one day while testing out some programs... Power consumption is a very annoying thing in that you can't ignore it even though it's practically impossible to measure it effectively I suspect that it's mainly the Nspire's 90MHz CPU that can be a power hog, so it's important to make sure we idle it properly when nothing is happening. The way to do this is with the wait-for-interrupt instruction (mcr p15, 0, SBZ, c7, c0, 4), which is executed by the idle() function in libndls. However, this instruction is only useful if the interrupt that wakes the CPU up is acknowledged. Otherwise, next time around, the interrupt controller is already asserting to the CPU that an interrupt is pending, so the instruction just returns immediately. Presently, Ndless programs run with the CPSR I bit set on the CPU, so the OS's IRQ handler is not run, and IRQs never get acknowledged unless a program does so explicitly. I think libndls should have a delay routine that keeps the CPU idle by acknowledging timer interrupts as they come, something like this: // Idle for n/100 seconds void delay(int n) { int irq_mask = *(volatile int *)0xDC000008; *(volatile int *)0xDC00000C = ~(1 << 19); // Disable all IRQs except timer for (; n; n--) { asm ("mcr p15, 0, %0, c7, c0, 4" : : "r" (0)); // Wait for an interrupt to occur *(volatile int *)0x900A0020 = 1; // Acknowledge timer interrupt at source *(volatile int *)0xDC000028; // Make interrupt controller stop asserting nIRQ if there aren't any active IRQs left } *(volatile int *)0xDC000008 = irq_mask; // Re-enable disabled IRQs return 0; }
183
« on: March 12, 2011, 08:31:09 pm »
No, that's all for now.
184
« on: March 12, 2011, 08:29:05 pm »
Here's a new version. With touchpad support (I can finally play it on my own calculator ) and source code included.
185
« on: March 09, 2011, 06:18:05 pm »
It worked when I tested it. What OS are you using? (I have 2.0.1)
186
« on: March 09, 2011, 05:57:24 pm »
I think what you're looking for is augment(myArray,{666}). A way to do it "in-place" is 666→myArray[7]. This might be faster, but I haven't tested.
187
« on: March 09, 2011, 01:18:46 am »
By the way Goplat, if you find the time, would you mind adding those access permission bits to the MMU before you get too busy adding support for OS 3.0 and Nspire CX?
Here you go. Version 0.51: - Implement MMU access permission bits
188
« on: March 08, 2011, 11:50:27 am »
Thanks for pointing out the directory problem. I hate using hex for that kind of thing, I always make a mistake like that. As for virtual pages, it sounds like a great idea to start. However, it would get pretty inefficient, pretty fast. Imagine you're several GCs into the usage of the filesystem. The virtual pages end up completely different then the normal ones. When looking for file entries, or reading from a stream, crossing page boundaries becomes very slow - you'd have to swap through every physical page until you find the virtual one you need. Could you keep a copy of the virtual->physical mapping as a table in RAM? With a 1-byte entry per 64kB sector, it should only take 32 bytes.
189
« on: March 07, 2011, 04:02:50 pm »
if i see that on the cx i will scream throw it at the wall and hate ti more so than i do already (at times)
What do you mean by "see that"? You won't see OS 2.x running on the CX, of course. If you saw that the CX had 103.7 MB available, that would be great; it would mean the OS hadn't grown at all.
190
« on: March 07, 2011, 03:54:13 pm »
Let's try to guess what the remainging free space (with no user documents in memory) will be. 4Mb on the basic TI-Nspire, and 6Mb on the CAS TI-Nspire ? We wouldn't be able to play nDoom any more! They've finally found out how to prevent students from using Ndless and playing games: after the "no programming", comes the "no memory"!
Using a modified nspire_emu, modified boot2, and modified OS, I got a screenshot of what it would look like if the TI-Nspire had 128MB of flash, like the CX, instead of just 32MB. If we take TI's claim that the CX has 100MB of storage available, this suggests that OS 3.0 is no more than 3.7MB larger than 2.1. (Note it could be smaller than that, since the 100MB figure might just be rounded down, so don't get outraged just yet.)
191
« on: March 05, 2011, 11:39:59 am »
I think this is theoretically possible, by modifying /ti84/84ram.bin or whatever it's stored in. But can't you just use the same USB cable you use to send .tns documents, to send directly to the 84+ emulator?
192
« on: March 04, 2011, 09:37:17 pm »
bsl: How do you launch the Datalight command shell? I looked, but I never found any way to call it, besides running an Ndless program of course (which can't be done without USB)
193
« on: March 04, 2011, 04:07:15 pm »
Shouldn't be any moreso than using a TI-83+/84+ emulator on the PC. It's confusing at first but you get used to it.
194
« on: March 04, 2011, 03:56:35 pm »
TI just said you couldn't use the TI-84+ keypad - maybe they'll make the emulator accessible with the normal TI-Nspire CX keypad. It has more keys than the TI-84+, so they would just have to make a simple key mapping.
195
« on: March 03, 2011, 02:31:40 pm »
That would be cool. Those files won't take too long to decompress I hope, right? That said if Ndless 3.0 CX is ever possible, then it wouldn't be an issue anymore since the new calcs got 100 MB of Flash. However if OS 3.0 is like 90 MB large, then that's another story...
Actually, 100 MB is probably the space that's still free with the OS installed. There's no such thing as a 100 MB flash chip - they come in sizes that are powers of 2, so TI is probably using a 128 MB chip. Let's compare how space might be used up on the normal TI-Nspire vs. the TI-Nspire CX, assuming an OS the size of 2.1.0.631. It comes out pretty close to 100 MB free on the CX: | TI-Nspire | TI-Nspire CX | Flash chip size | 32 MB | 128 MB | Subtract space reserved for BOOT2 and DIAGS (2 MB) | 30 MB | 126 MB | Subtract filesystem overhead (about 7.3%) | 27.8 MB | 116.8 MB | Subtract OS files (15.1 MB) | 12.7 MB | 101.7 MB |
Pages: 1 ... 11 12 [13] 14 15 ... 20
|