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

Pages: 1 ... 9 10 [11]
151
Ndless / Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« on: December 18, 2010, 11:53:21 pm »
Quote
Quote from: DJ Omnimaga on Today at 19:45:04
Nice. Do you think Ndless 1.4 should be included with 1.7 on ticalc.org by the way? I thought it would be nice to have all Ndless versions available in one download (for those who prefer using older/smaller OSes)
I was waiting for a proven stable version of 1.7 to come out, before updating Ndless 1.3/1.4
Maybe OS2.0 will give me clues on how to interact with the TouchPad  for OS1.3-4 ?
If not I will give up on the TouchPad and update Ndless 1.3/1.4  and post it.
I will be out of luck if the Applications under those older OS's communicated directly with the hardware I/O
instead of a common OS software call.
Those older OS's can give you more memory and speed to work with .

152
Ndless / Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« on: December 18, 2010, 09:18:14 pm »
Here are the Touchpad Definitions from Ndless 1.4 - copy and paste the block
int this file into Ndless 2.0 common.h


153
Ndless / Re: Ndless 1.7 for TI-Nspire
« on: December 15, 2010, 05:19:17 pm »
Here are standard declarations for os.h that are missing but in the idc files.
Some of these functions are completely untested, but here are the declarations anyway.
Some of these are already in os.h .

read_unaligned_longword       _SYSCALL1(size_t, read_unaligned_longword, void *)
read_unaligned_word       _SYSCALL1(int, read_unaligned_word, void *)
isalnum             _SYSCALL1(int, isalnum, int) 
isalpha             _SYSCALL1(int, isalpha, int)
isascii             _SYSCALL1(int, isascii, int)
isdigit             _SYSCALL1(int, isdigit, int)
islower             _SYSCALL1(int, islower, int)
isprint             _SYSCALL1(int, isprint, int)
isspace             _SYSCALL1(int, isspace, int)
isupper             _SYSCALL1(int, isupper, int)
isxdigit          _SYSCALL1(int, isxdigit, int)
toupper             _SYSCALL1(int, toupper, int)
calloc             _SYSCALL2(void*, calloc, size_t, size_t)
free             _SYSCALL1(void, free, void *)
malloc             _SYSCALL1(void*, malloc, size_t)
realloc             _SYSCALL2(void*, realloc, void *, size_t)
fprintf             ?
printf             _SYSCALLVAR(int, __attribute__((__format__(__printf__,1,2))), printf, __attribute__((unused)) const char *format, ...)
sprintf             _SYSCALLVAR(int, __attribute__((__format__(__printf__,2,3))), sprintf, __attribute__((unused)) char *s, __attribute__((unused)) const char *format, ...)
vfprintf_limit256       ?
vsprintf          _SYSCALL3(int, vsprintf, char *, const char *, va_list);
vsprintf_limit256       ?
fclose             _SYSCALL1(int, fclose, FILE *)
fgetc             _SYSCALL1(int, fgetc, FILE *)
fgets             _SYSCALL3(char *, fgets, char * , int , FILE * )
fopen             _SYSCALL2(FILE*, fopen, const char *, const char *)
fread             _SYSCALL4(size_t, fread, void *, size_t, size_t, FILE *)
fseek             _SYSCALL3(int, fseek, FILE *, long int, int)
fwrite             _SYSCALL4(size_t, fwrite, const void *, size_t, size_t, FILE *)
putc             _SYSCALL1(int, putc, int)
puts             _SYSCALL1(int, puts, const char *)
atoi             _SYSCALL1(int, atoi, const char *)
memcmp             _SYSCALL3(int, memcmp, const void *, const void *, size_t)
memcpy             _SYSCALL3(void*, memcpy, void *, const void *, size_t)
memmove             _SYSCALL3(void*, memmove, void *, const void *, size_t)
memset             _SYSCALL3(void*, memset, void *, int, size_t)
strchr             _SYSCALL2(char *, strchr, const char *, int)
strcmp             _SYSCALL2(int, strcmp, const char *, const char *)
strcpy             _SYSCALL2(char *, strcpy, char *, const char *)
strlen             _SYSCALL1(int, strlen, const char *)
strncat             _SYSCALL3(char *, strncat, char *, char *, size_t)
strncmp             _SYSCALL3(char *, strncmp,const char *,const char *, size_t)
strncpy             _SYSCALL3(char *, strncpy, char *,const char *, size_t)
strpbrk             _SYSCALL2(char *, strpbrk, const char *, const char *)
strrchr             _SYSCALL2(const char*, strrchr, const char *, int);
memrev             ?
atof             _SYSCALL1(double, atof, char *)
_fputc             _SYSCALL2(int, fputc, int, FILE *);
chdir             _SYSCALL1(int, chdir, char*)
close             _SYSCALL1(int, close, int)
mkdir             _SYSCALL2(int, mkdir, const char*, int)
open             _SYSCALL3(int, open, const char*, int,int)
read             _SYSCALL4(size_t, read, int, void *,size_t,off_t)
rename             _SYSCALL2(int, rename, const char*, const char*)
rmdir             _SYSCALL1(int, rmdir, const char *)
stat             _SYSCALL2(int, stat, const char *, struct stat *)
unlink             _SYSCALL1(int, unlink, const char *)
write             _SYSCALL4(size_t, write, int, void *,size_t,off_t)
NU_Make_Dir          _SYSCALL1(int,  NU_Make_Dir, char *)
NU_Remove_Dir          _SYSCALL1(int,  NU_Remove_Dir, char *)
NU_Get_First          _SYSCALL2(int, NU_Get_First, struct dstat *, const char * /* pattern */)
NU_Get_Next          _SYSCALL1(int,  NU_Get_Next, struct dstat *)
NU_Done             _SYSCALL1(void, NU_Done, struct dstat *)
NU_Set_Current_Dir       _SYSCALL1(void, NU_Set_Current_Dir, const char *)
NU_Current_Dir          _SYSCALL3(int,  NU_Current_Dir, char *, const char *)
NU_Open             _SYSCALL3(int,  NU_Read, char *, int, int)
NU_Close          _SYSCALL1(int,  NU_Close, int)
NU_Read             _SYSCALL3(int,  NU_Read, int, char *, int)
NU_Write                    _SYSCALL3(int,  NU_Write, int, char *, int)
NU_Seek             _SYSCALL3(int,  NU_Seek, int,int,int)
NU_Delete          _SYSCALL1(int,  NU_Delete, char *)
NU_Rename          _SYSCALL2(int, NU_Rename, char *,char *)
NU_Flush          _SYSCALL1(int, NU_Flush, int)

154
Ndless / Re: Ndless 1.7 for TI-Nspire
« on: December 14, 2010, 04:00:17 pm »
A4000000 - A4000100   interrupt vector table
A4000100 - A40096FF   screen

0x9700 == 37.75KB of screen+IVT
Leaves the remainder 80k-37.75k above the screen.
Thats interesting, I should use the console program and see for myself that
the memory above the screen repeats on real hardware.

The Ndless installer only uses screen memory - I have a great screen dump of the installation process
stopped just before the screen clears with the "Installed" dialog.
There are 4 bars - top screen bar- initial code
                         second bar - stage 1 code
                         third bar - stage 2 code
                         bottom screen - installation progress stripes -
 
EDIT: The memory does repeat - for those of you interested, run the console program and run 2 commands:

d 0  [which disassembles at A4000000]
and
d 20000 [ which disassembles at A4020000 ]

The results are the same [also A4040000,...]

For the 4 smaller 16k blocks, hexdump at:
h 10000
h 14000
h 18000
h 1c000
 

155
Ndless / Re: Ndless 1.7 for TI-Nspire
« on: December 02, 2010, 04:02:18 pm »
You might include one or two examples on how to use the SYSCALL_CUSTOM for people
who want to add new standard library function and test them

156
Ndless / Re: Ndless 1.7 for TI-Nspire
« on: November 25, 2010, 02:22:08 pm »
Got Ndless CAS1.7 running on the emulator
put in syscalls-light_cas-1.7.c:
Code: [Select]
          0X102A6CCC
        , 0X102A6EC0
        , 0X102a6ffc
        , 0X102A66C4
        , 0X102A481C
        , 0X102AC2DC
        , 0X102A74D4
        , 0X102A31D8
and append to syscalls_cas-1.7.c:
Code: [Select]
        , 0X102A49E8
        , 0x102a6ffc
You can use Levak's  values given on this thread.
Also, to get it to compile, the Makefile under libndls/
I changed the line:
Code: [Select]
from: AR = arm-none-eabi-ar
to:   AR = arm-elf-ar

157
Ndless / Re: Ndless 1.7 for TI-Nspire
« on: November 24, 2010, 05:31:12 pm »
Dont forget to update syscalls-light_cas-1.7.c and syscalls_cas-1.7.c

fseek cas1.7 should be 0x102a6ffc
vsprintf cas1.7 should be 0x102a49e8

The order of the calls is different in syscalls-light_cas-1.7.c - edit carefully

Pages: 1 ... 9 10 [11]