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

Pages: [1]
HP Calculators / Re: The .hpprgm format
« on: August 07, 2014, 02:19:28 am »

well, I don't remember the specifics from the top of my head, but basicaly:
- First blob: header with number of exported function, variables (exported and not) and views.
This first blob also contains the list of strings with the names of these exported (or not) objects.

- n blobs: the content/value of the program global variables. This is where it is complicated as a varaible can contain expressions/functions and the like, even CAS objects... not that the format is complciated, it's just has a lot... from numbers, to matrices, lists, complex...

- 1 blob: source code.


HP Calculators / Re: The .hpprgm format
« on: August 06, 2014, 01:28:02 am »

note that a lot of the data in the header is optional, you can send a program without it's variables or any of the exported data info, put the source nevertheless and, once on the calculator, open, add a space and exit to compile... that makes it much easier if what you want to do is to edit programs on the PC...

note, prety much all the saves data in the calc follows a format of the type:
[header] [blob size   blob of data]*

in a program, there is no fixed size header, and the source is always the last entry in the file. This should make it easy to get to it without having to understand the format...


HP Calculators / Re: Let's hack the HP Prime!
« on: July 15, 2014, 02:45:51 am »

When the HP Calculator is set to recovery mode, there is a partition available named "HP CALC DEV"(around 247.12mb is still free)

This is the data partition where user data is saved...


HP Calculators / Re: Let's hack the HP Prime!
« on: July 02, 2014, 02:15:15 am »

xCas has multiple licencing alternatives, as described in the author's pages... GPL is not the only options...



>smaller than ICON (Uncompressed PNG file? There has to be a better way).
ICON is a compressed PNG... problem is that since it is in hex, it takes 2 bytes per nibble :-(

>For example, there's no simple function to get only a part of a list
yes there is! L1({5,8}) will get you elements 5 to 8 of L1 in a list..

>or to insert a list item in the middle of one.
concat(L1({1,n}), { 1, 2, 3}, L1({n,1000}))

You can also pass around functions, but they need to be properly QUOTEd to make sure that they are not evaluated at the wrong time...


HP Calculators / Re: Let's hack the HP Prime!
« on: June 25, 2014, 01:24:07 am »

Yes, from HP.

>Perhaps the uart is only used for flashing the bootloader for example and not for debugging.
nope, bootloader, when we need to flash it (which has never happend to me) is done through JTAG...

I can't help you hack Prime application, sorry, but I can help you do prety much anything else...

As you stated earlier, the application is a .elf file and you can replace the application by anything else that you compile and it should be started by the OS... then you are free to do whatever you want... but this transforms prime into a single purpose machine...


HP Calculators / Re: Let's hack the HP Prime!
« on: June 24, 2014, 02:08:04 am »

Nothing on RS232, sorry...
No buffer overruns that I know of (else I would have fixed them...)
If any of you is interested in the data protocol between calcs, just ask...


HP Calculators / Re: Fast filled circles routine
« on: June 24, 2014, 02:02:16 am »

[quoteJBy the way, the S, 0, 359, 10 part can be changed to stuff like S, 0, 359, 20 for faster, but lower quality circle. Don't set the last number too high, else it looks weird.

the 20 should be based on the radius... the larger the radius, the more segments you need to draw...

Also, in the case of your circle fade out, instead of using multiple graphics and blits, you could try creating one single polygon of the type:
0,0,   319,0,   319, 239  160, 239,    190, bottom of circle,    circle....   190, bottom of circle,    160, 239    0, 239
This would allow you do to the animation without any extra graphics...

If this does not work well (unpainted pixels), try spliting it in 2 halfs. the right and left half of the screen... might work better..

The reason why in your program it asks you which function to run is because you have multiple EXPORTED functions in your program (FILLPOLY in this case)... remove the EXPORT in front of FILLPOLY and it will not ask you again.


Pages: [1]