Custom games/apps menu - Feature Requests - CHDK Forum supplierdeeply

Custom games/apps menu

  • 7 Replies
  • 2490 Views
Custom games/apps menu
« on: 01 / August / 2010, 20:49:16 »
Advertisements
I think it should be possible to write your own games (or any kind of applications) for CHDK in C or assembly language, compile/assemble them, and put them in a folder like \CHDK\APPS. Then, you can go to Miscellaneous>Load Application, which would open a file browser. You can select something like, say, CALCULATOR.BIN, and run it.

*

Offline reyalp

  • ******
  • 12737
Re: Custom games/apps menu
« Reply #1 on: 01 / August / 2010, 20:57:47 »
http://chdk.setepontos.com/index.php/topic,847.0.html

Loadable binaries are a longstanding need. Just need a developer to commit the time.
Don't forget what the H stands for.

Re: Custom games/apps menu
« Reply #2 on: 01 / August / 2010, 21:17:09 »
It should be added to the official CHDK build, not an unofficial branch.

*

Offline reyalp

  • ******
  • 12737
Re: Custom games/apps menu
« Reply #3 on: 01 / August / 2010, 21:27:57 »
It should be added to the official CHDK build, not an unofficial branch.
First, it needs to actually exist. This is not a trivial task, it needs a lot of effort. What has been done so far is more of a sketch of how it could work. It's missing some fundamental pieces, and turning it into something that could actually be integrated into CHDK is quite a bit of work.
Don't forget what the H stands for.


Re: Custom games/apps menu
« Reply #4 on: 01 / August / 2010, 21:31:38 »
I don't see why it would be that hard. CHDK can just execute the raw binary code in the file. Granted, I don't know how to program that, but I would think the CHDK developers would.

*

Offline reyalp

  • ******
  • 12737
Re: Custom games/apps menu
« Reply #5 on: 01 / August / 2010, 21:57:40 »
I don't see why it would be that hard.
Then do it.
Quote
CHDK can just execute the raw binary code in the file.
No you can't. What address is it loaded at ? How does it link to the OS and CHDK functions ? How do you compile and link your "raw binary" in the first place ? How do you ensure the instruction cache is updated to it actually gets executed when you jump to the start ?

Most loadable binary formats are aimed at machines with MMUs. CHDK cameras have a flat address space, which actually makes this quite a bit more difficult, and means you can't rely on standard tools. CHDK itself (like the factory firmware) is loaded at a fixed address, but this isn't a viable option for loadable binaries.
Quote
Granted, I don't know how to program that, but I would think the CHDK developers would.
Knowing how to do it, and having the time to do it are very different things.
Don't forget what the H stands for.

Re: Custom games/apps menu
« Reply #6 on: 02 / August / 2010, 12:40:03 »
I am glad I am not a CHDK developer.

There have been a number of ungrateful people making demands lately.

They all say that they would do it if they knew how and had the time.

Of course, they don't.

What do they expect for the price ?

Re: Custom games/apps menu
« Reply #7 on: 02 / August / 2010, 19:54:53 »
Don't let this turn into a flame war.


 

Related Topics