Excellent !! I spend the day checking all addresses against the SD90 port. I'll still need to look and see if anything changed from the Alpha 2 release.
I didn't understand the CHDK version used (version "2000", no "<ALT>" indicator) so I changed to base it from release 1001.
I did mention the code was a little rough - using version 2000 allowed me to ignore updates to the trunk revisions and work on a stable release back when I didn't understand how things worked.
I determined that playrec_mode variable was correct. I also found that the camera was crashing when trying to run histogram_process() when in record mode. The problem was in vid_get_viewport_live_fb. Changing this function to return a null pointer allowed it to run without crashing. I'm not sure how to find the correct addresses for this but returning 0 works for now.
I found the same thing today. In fact, I noticed that in the S90 port, vid_get_viewport_live_fb() simply returns 0. Now we know why.
I'm seeing some random vertical shifts of about 20 lines so that the OSD overlay is sometimes too low / sometimes OK. Not sure what's going on there.
So far I've commented out things to get the OSD clock to display - I haven't been able to get anything else in OSD to work but that was going to be my next task.
Using the Display key to toggle Alt mode is a little strange. Some features, like the memory browser don't work due to not being able to press Display in Alt mode. I'm not sure how the configurable alt button feature is supposed to work. On the SD940 there is no print button so you can't press the default Alt button (Print) to get to the Alt menu to change the Alt button !
I picked the Display key as the ALT key because as you mentioned the SD940 does not have a Print button. I didn't realize it would cause problems in ALT mode, never having actually used CHDK on a camera. Any idea how other cameras handle this ?
I also got the .fir version to work. Just remove the comment from the OPT_FI2=1 line and add the correct fir.inc file and it builds it correctly.
What do you use the .fir version for ?