Using Numbered Registers

7KH*!*!DQG￿NH\VDFFHVVWKHXVHUUHJLVWHUV7KH NH\LVXVHGWRFRS\WKHGLVSOD\HGQXPEHUWRD GHVLJQDWHGUHJLVWHU7KH￿NH\LVXVHGWRFRS\DQXPEHU

IURPDUHJLVWHUWRWKHGLVSOD\

7RVWRUHRUUHFDOODQXPEHULQWZRVWHSV

 3UHVV*!RU￿ 7RFDQFHOWKLVVWHSSUHVVRRU%  (QWHUWKHUHJLVWHUQXPEHU WKURXJK 

,QWKHIROORZLQJH[DPSOHWZRVWRUDJHUHJLVWHUVDUHXVHG&DOFXODWHWKH

IROORZLQJ

475.6

560.1 + 475.6

 

39.15 DQG

39.15

 

------------

--------------------------------

 

Keys:d￿￿￿￿￿*!￿Display:

Description:

475.60

 

6WRUHV GLV

 

 

SOD\HGQXPEHU LQ5￿

39.15

 

6WRUHVLQ5￿

12.15

 

&RPSOHWHVILUVW

 

 

FDOFXODWLRQ

475 60

 

5HFDOOV5 

39.15

 

5HFDOOV5￿

26.45

 

&RPSOHWHVVHFRQG

 

 

FDOFXODWLRQ

:LWKWKHH[FHSWLRQRIVWDWLVWLFV\RXFDQDOVRXVH*!DQG￿￿IRU DSSOLFDWLRQUHJLVWHUV)RUH[DPSOH*!.VWRUHVWKHQXPEHUIURPWKH GLVSOD\LQWKH.UHJLVWHU￿.FRSLHVWKHFRQWHQWVIURP.WRWKH GLVSOD\

,QPRVWFDVHVLWLVXQQHFHVVDU\WRFOHDUDVWRUDJHUHJLVWHUVLQFHVWRULQJD QXPEHUUHSODFHVWKHSUHYLRXVFRQWHQWV+RZHYHU\RXFDQFOHDUDVLQJOH UHJLVWHUE\VWRULQJLQLW7RFOHDUDOOWKHUHJLVWHUVDWRQFHSUHVV*&

40 3: Number Storage and Arithmetic

Page 40
Image 40
HP F1902-90001 Using Numbered Registers, Iroorzlqj, 5HFDOOV5 , RpsohwhvIluvw, 40 3 Number Storage and Arithmetic