fixes for HP-45 and HP-55 simulators



#2

I've been playing with the HP-45 and HP-55 simulators---very
interesting! It turns out there are some errors in the assembly code as transcribed from the listings in the patents:

hp45.asm:
---------

99c99
< if a[x] >= 1
---
> if a[xs] >= 1

hp55.asm:
---------

67c67
< ofl: delayed select rom 3
---
> ofl: delayed select rom 5
1601c1601
< ent14: c -> a[x]
---
> ent14: 0 -> a[x]
2012c2012
< c + 1 -> c[w]
---
> c + c -> c[w]
2025c2025
< c + 1 -> c[w]
---
> c + c -> c[w]
3115,3116c3115,3116
< out1: c - 1 -> c[xs]
< out2: c - 1 -> c[xs]
---
> out1: c - 1 -> c[x]
> out2: c - 1 -> c[x]

They were found by hacking up an OCR to look at the '1's and '.'s in the patent TIFFs, so these are probably all the mistakes.

The HP-55 now works under casmsim, at least in ordinary "run" mode. I don't know how to emulate the timer-program-run switch, though. Something to do with S3 or S8, maybe, but exactly what is not clear from the code (which could do with a few comments).

A modified xio.c to display the HP-55 keyboard is available here, along with revised hp45.asm and hp55.asm:

http://www.pmonta.com/calculators

Cheers,
Peter Monta


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP 55 Olivier De Smet 8 1,159 08-26-2013, 04:54 PM
Last Post: Matt Agajanian
  Maciej Bartosiak's iOS simulators... Pal G. 3 664 06-07-2013, 05:15 PM
Last Post: Pal G.
  Update of Emu48 to v1.55 Christoph Giesselink 4 882 05-26-2013, 05:28 PM
Last Post: Andrew Nikitin
  Repair HP 45 Nanoman 3 636 04-12-2013, 05:40 PM
Last Post: BobVA
  Recharging original batteries in HP 45, 65 and 25 Michae Altmann 1 549 03-05-2013, 12:21 AM
Last Post: DavidShenk
  Celebrating the HP-55 my first HP Calculator Namir 6 863 08-25-2012, 02:00 PM
Last Post: Thomas Radtke
  OT--APF Mark 55 Question Matt Agajanian 6 956 07-19-2012, 10:51 PM
Last Post: Matt Agajanian
  Restoring an HP-55, advice appreciated ! Alberto Fenini 4 787 05-15-2012, 03:43 AM
Last Post: Alberto Fenini
  HP-35 ('72) Bug Fixes & Variations Matt Agajanian 2 494 04-19-2012, 06:52 AM
Last Post: Frank Boehm (Germany)
  HP 45 versions james summers 18 1,978 04-14-2012, 02:36 AM
Last Post: Eric Smith

Forum Jump: