Post Reply 
(49G+) IBM Check Digit Programme
05-29-2015, 10:46 AM
Post: #2
RE: HP 49G+: IBM Check Digit Programme
Sorry, error in above programme, corrected here:

Code:
::
  CK1&Dispatch
  # FF
  ::
    DUP
    {
      BINT0
      BINT2
      BINT4
      BINT6
      BINT8
      BINT1
      BINT3
      BINT5
      BINT7
      BINT9
    }
    SWAPDUP
    ID x010
    DUP
    BINT2
    #<case
    DROPSWAPDROP
    BINT0
    3UNROLL
    ZERO_DO
    Z10_
    FPTR2 ^ZDIVext
    FPTR2 ^Z2BIN
    INDEX@
    BINT2
    #/
    DROP
    #0=
    IT
    ::
      #1+
      4PICKSWAP
      NTHCOMPDROP
    ;
    ROT#+
    BINT10
    #/
    DROP
    SWAPLOOP
    DROPSWAPDROP
    DUP#0=csedrp
    Z0_
    BINT10
    SWAP#-
    FPTR2 ^#>Z
  ;
;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 49G+: IBM Check Digit Programme - Gerald H - 05-29-2015 10:46 AM



User(s) browsing this thread: 1 Guest(s)