Two patents containing source code for the HP-45 and HP-55, along with some architectural details of their internals:
US Patent 4001569 (HP-45)
US Patent 4009379 (HP-55)
Eric Smith's assembler and simulator, CASMSIM
Dave Hicks' Java port with debugger console