3: Number Storage and Arithmetic 41
Doing Arithmetic Inside Registers
<RXFDQGRDULWKPHWLFLQVLGHVWRUDJHUHJLVWHUV5 WKURXJK5 7KHUHVXOW
LVVWRUHGLQWKHUHJLVWHU
Example. 6WRUHLQ5 PXOWLSO\E\DQGVWRUHWKHUHVXOWLQ5
Keys New Number in Register
UHJLVWHUQXPEHU 2OGFRQWHQWVGLVSOD\HGQXPEHU
UHJLVWHUQXPEHU 2OGFRQWHQWV²GLVSOD\HGQXPEHU
UHJLVWHUQXPEHU 2OGFRQWHQWVïGLVSOD\HGQXPEHU
UHJLVWHUQXPEHU 2OGFRQWHQWV¸GLVSOD\HGQXPEHU
Keys: Display: Description:
45.70
6WRUHVLQ5
2.50
0XOWLSOLHVLQ5 E\
DQGVWRUHVUHVXOW
LQ5
114.25
'LVSOD\V5
ook Page 41 Wednesday, June 21, 2000 5:19 PM