Daniel's Stuff

I write code

Month: July 2009

More progress on the HP48GX emulator for the iPhone

I had a bit more of a play with the emulator code tonight and fixed up a few little glitches.  I also changed the color of the emulation screen to look more like the real thing 🙂  Now off to bed!  It also looks like it is OK to distribute the ROM file as apparently HP released the ROMs to the public some time in 2000.  The github repository (http://github.com/dparnell/i48/tree/master) has been updated to include the ROM file.

A HP48GX emulator for the iPhone and iPod Touch

I have just released the source to a HP48GX emulator for the iPhone and iPod Touch.

It’s a very rough port of x48 to the iPhone, but it works 🙂  There is the occasional screen glitch and I’m not too happy with the screen buffer code.  Something else that is a bit annoying is that it appears that compiling in Debug mode to run on the device does not work.  It looks like one of the case statements in the x48 emulation code is too big to be compiled for ARM under gcc.  I had a quick look at using the LLVM compiler but it didn’t seem to like it.
The code can be downloaded from http://github.com/dparnell/i48/tree/master 
Another thing to be aware of is that the code does not include a ROM, but they are fairly easy to come by with a bit of googling 🙂

What I’ve been doing recently

Today I found out that an application I built for the iPhone has become available on the iTunes store.  It’s a simple little app to estimate electricity bills for a household.  Check it out on the iTunes store via the following link 🙂 AGL Energy Efficiency
I’ve also been working on the Windows Live Mail compression code some more and have gotten some good results.  Below in an example of what I’m getting

X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MTtTQ0w9MA==

X-Message-Status: n:0

X-SID-PRA: Daniel Parnell <me@danie******pl <m********.com>-Status: n:0Info: JGTYoYF78jHVrAq/T4xfKLLpTvwPwE0t6g/vyq6tyzbqln5iNnXwcSMg41wQCSulCxd5N8UB57Lq6un/ug7i0YsGX30yo+pm

ReceLjEE7*d: from randymail-a4.g.dreamhostm>-S ([208.97.132.207]) by bay0-mc8-f11.bay00***.hot-a4. ([2*with Microsoft SMTPSVC(6.0.3790.2668);

Thu, 29 Jan 2009 16:06:38 -080


and this is what I should be getting.


X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0wO0Q9MTtTQ0w9MA==

X-Message-Status: n:0

X-SID-PRA: Daniel Parnell <me@danielparnell.com>

X-Message-Info: JGTYoYF78jHVrAq/T4xfKLLpTvwPwE0t6g/vyq6tyzbqln5iNnXwcSMg41wQCSulCxd5N8UB57Lq6un/ug7i0YsGX30yo+pm

Received: from randymail-a4.g.dreamhost.com ([208.97.132.207]) by bay0-mc8-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668);

         Thu, 29 Jan 2009 16:06:38 -0800