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

Pages: 1 ... 8 9 [10] 11 12 ... 19
136
Miscellaneous / Re: Computer Specs
« on: October 28, 2011, 05:08:51 pm »
* Windows 7 64 bit
* Tower: NZXT Vulcan
* CPU: Intel Core i5-2500k (4x 3,3GHz)
* RAM: 2x Corsair Vengeance (DDR3, 4GB) = 8GB
* Graphics card: Sapphire Radeon HD 5770
* MB: Gigabyte Z68MA-D2H-B3 (µATX)
* PSU: be quiet! 430W
* HDD 1: 250GB (Maxtor)
* HDD 2: 1000GB (Samsung)

Ikkerens, wtf :o

137
News / Re: Reflash your Nspire Diags without RS232!!!
« on: October 28, 2011, 04:53:55 pm »
Of course, the development Boot1 would have to be replaced by the production Boot1 too, or the production Boot2 won't be run. But we're getting nearer and nearer... ;)
Does this mean that replacing the boot1 would be theoretically possible?
(I always thought it is read-only or something...)

138
TI-Nspire / Re: rshell - A simple RS232 shell for the Nspire
« on: September 11, 2011, 06:21:53 am »
Unfortunately not, it is a bug. :P

139
TI-Nspire / Re: rshell - A simple RS232 shell for the Nspire
« on: September 10, 2011, 03:14:36 pm »
Update :)

- Using on-screen console instead of RS232
- Launched programs can use Nspire I/O to write to (and read from) rshell's console
- Programs that need to be run with rshell have the header "RSH\0" instead of "PRG\0" to prevent errors when launching with the standard loader
- Included program rshell_header.exe to replace "PRG\0" with "RSH\0"
- Launching a program does not require the .tns ending anymore
  (for example you can type "ls" instead of "ls.tns")

My solution isn't very memory-efficient yet, because I didn't get shared variables/functions to work.

140
Ndless / Re: Ndless 3 and access to Wireless
« on: September 09, 2011, 01:50:22 am »
USB would be awesome :)
If someone would make a library for USB communication, we could make multiplayer games :D

141
Doesn't work, but at least the address of rshell in the launched program isn't 00000001 anymore  :-\

I got 2 different errors and one time it just restarted.

Code: (Adresses of argv 19) [Select]
Launcher: 1800e93c
Launched: 111793a8

142
BUMP

Code: (Launcher) [Select]
n_argc=1, n_argv=1800e070, &rshell=111B0400
Code: (Launched) [Select]
argc=1, argv=1800e070, rshell=00000001

143
First of all, thanks for your help.
Currently I'm not at home, but how do I have to call nl_relocdata() with a structure?
What is the first argument (nl_relocdata_data on Hackspire)?

144
I've tried it on this way now:

I define a structre called _rshellAPI (in a header file that is included in rshell and the launched program) which looks like this:
Code: [Select]
typedef struct _rshellAPI
{
void (*c_draw)(void);
void (*c_clear)(void);
void (*c_writec)(char ch);
void (*c_write)(char* str);
void (*c_swrite)(char* format, int buflen, ...);

char (*cn_readc)(void);
char (*c_readc)(void);

int (*c_read)(char* str);
} rshellAPI;

In rshell's source, I initialize this structure with functions of Nspire I/O:
Code: [Select]
rshellAPI rshell =
{
&c_draw,
&c_clear,
&c_writec,
&c_write,
&c_swrite,
&cn_readc,
&c_readc,
&c_read
};

And then pass it to the launched program:
Code: [Select]
((void (*)(int, char **, rshellAPI*))(docptr + sizeof(PRGMSIG)))(n_argc, n_argv, &rshell);
Then I've changed the launched program to use these functions:

Code: (main() definition) [Select]
int main(int argc, char** argv, rshellAPI* rshell)
Code: (example call) [Select]
rshell->c_writec('\n');

All this compiles without errors, but when the launched program tries to call one of the functions, this happens:
Code: [Select]
Error at PC=11140B6C: Unaligned read_word: 11
        Backtrace:
Frame     PrvFrame Self     Return   Start
11136665: 41000000 3A41003A 003E7325 000A0D20
41000000: invalid address

What is wrong with this?

145
When I launch a program via my shell, is it possible to make functions and variables of it available for the launched program?

146
TI-Nspire / Re: rshell - A simple RS232 shell for the Nspire
« on: August 21, 2011, 07:33:05 am »
I'd bet on it: Lua doesn't have any RS232 support as far as I'm aware, so it'd have to be ndless.
Lua has a function to send data via RS232, but you can't receive any data with it. So yes, this requires Ndless.

Ndless for 3.0 will come, just wait!
Lua + C would be awesome :D

147
TI-Nspire / Re: rshell - A simple RS232 shell for the Nspire
« on: August 19, 2011, 01:52:48 am »
yay, because that's been something I've wanted for a while.

Oh, also, if we cp to a non-tns name, will it then not show up in the menu, but still be in the calc? That would rock.
Yes, files with a non-tns extension will not be shown by the document browser, but you can "hack" the OS :P

148
TI-Nspire / Re: rshell - A simple RS232 shell for the Nspire
« on: August 18, 2011, 03:57:06 pm »
WANT. Also, any chance of integrating such a shell into the nspire without the RS232? :P
Maybe I can use one of my older projects for on-screen output and keyboard input, it shouldn't be too hard to integrate.

149
TI-Nspire / rshell - A simple RS232 shell for the Nspire
« on: August 18, 2011, 03:51:12 pm »
rshell is a command-line interface for Nspire using the RS232 port.

It has the ability to launch ndless executables and pass C's argc and argv to them.

I have included some programs for filesystem operations:

ls - list content of a directory
cp - Copy a file
mkdir - Create a directory
stat - Show size and type of a file
rm - Remove a file (for some reason buggy sometimes)

All these commands are in their own TNS-File that has to be located in /documents/bin or the current directory.

Built-in commands are:

cd - Change directory
exit - Exit rshell

Demonstration:

ls
Code: [Select]
A:\documents\>ls.tns
.\
..\
Examples\
bin\
A:\documents\>ls.tns /
dev\
tmp\
phoenix\
documents\
ti84\
logs\
widgets\

cp
Code: [Select]
A:\documents\>cp.tns
USAGE: cp.tns SOURCE DESTINATION
Copies a file from SOURCE to DESTINATION.
A:\documents\>cp.tns bin/stat.tns copied.tns
A:\documents\>ls.tns
.\
..\
Examples\
bin\
copied.tns

mkdir
Code: [Select]
A:\documents\>mkdir.tns
USAGE: mkdir.tns NAME
Creates a directory named NAME.
A:\documents\>mkdir.tns lol
A:\documents\>ls.tns
.\
..\
Examples\
bin\
copied.tns
lol\

stat
Code: [Select]
A:\documents\>stat.tns
USAGE: stat.tns FILE
Shows stat data for FILE.
A:\documents\>stat.tns copied.tns
Mode: File
Size: 0 KBytes
(Shows 0KB here, because it is smaller than 0.5KB and got rounded down...)

rm
Code: [Select]
A:\documents\>rm.tns
USAGE: rm.tns FILE
Removes the FILE.
A:\documents\>rm.tns copied.tns
A:\documents\>ls.tns
.\
..\
Examples\
bin\
lol\

cd
Code: [Select]
A:\documents\>cd examples
A:\documents\examples\>cd ..
A:\documents\>cd /
A:\>cd phoenix
A:\phoenix\>cd /documents
A:\documents\>cd \
A:\>

150
Miscellaneous / Re: Do you use Rockbox?
« on: August 17, 2011, 01:36:44 pm »
Yes, I have an iPod Nano 2G and I use Rockbox all the time on it.

Pages: 1 ... 8 9 [10] 11 12 ... 19