16C Compat. #4 - LASTx


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.



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


All the rest will be fixed with the next build.

I've updated SVN with Pauli's changes.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bought a 16C to compensate a little Eelco Rouw 23 7,878 12-07-2013, 01:26 PM
Last Post: Eelco Rouw
  Shiny new 16C! Keith Midson 7 2,532 10-27-2013, 02:22 AM
Last Post: Keith Midson
  HP-16C simulator fhub 12 3,437 06-30-2013, 10:14 PM
Last Post: Robert Prosperi
  Program for HP-16c... Leonid 9 3,003 06-07-2013, 08:51 PM
Last Post: David Hayden
  HP 11C/12C/15C/16C case Philippe Cairic 4 2,072 11-06-2012, 06:04 PM
Last Post: Matt Agajanian
  Understanding HP-16C integer division Jimi 18 5,072 10-16-2012, 09:13 PM
Last Post: Eddie W. Shore
  LASTx for the 35 Matt Agajanian 3 1,350 03-23-2012, 03:29 AM
Last Post: Massimo Gnerucci (Italy)
  WP 34S - INC X and RCL L (LASTx) Gerson W. Barbosa 10 2,489 12-26-2011, 05:33 PM
Last Post: Paul Dale
  Hack a 15C-le into a 16C? David Griffith 20 5,112 12-23-2011, 07:00 AM
Last Post: robert rozee
  has 16C memory increased? designnut 4 1,679 09-06-2011, 05:32 PM
Last Post: uhmgawa

Forum Jump: