The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

16C Compat. #4 - LASTx
Message #1 Posted by Jake Schwartz on 10 May 2011, 8:26 p.m.

Hi,

While continuing to work through the 16C manual with the 34s, I found that a bunch of bit functions did not set LAST X as the 16C does: LJ, ASR, RL, RR, RLC, RRC, SL, SR, RLC, RRC, MASKL, MASKR, SB and CB. Perhaps these really should set LAST X.

Thanks, Jake

      
Re: 16C Compat. #4 - LASTx
Message #2 Posted by Paul Dale on 10 May 2011, 8:53 p.m.,
in response to message #1 by Jake Schwartz

RLC and RRC are in the list twice :-) But the shifts and rotates didn't set lastX properly :-(

MASKL and MASKR don't modify the X register so they don't need to save lastX. They do push stack. Unlike the 16c we take the number of bits to mask as an argument to the command not from the stack. Our integer mode isn't identical to the 16c in this respect for quite a few commands.

LJ was just plain broken :-(

All the rest will be fixed with the next build.

- Pauli

            
Re: 16C Compat. #4 - LASTx
Message #3 Posted by Marcus von Cube, Germany on 11 May 2011, 3:07 a.m.,
in response to message #2 by Paul Dale

Quote:
All the rest will be fixed with the next build.
I've updated SVN with Pauli's changes.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall