3: Number Storage and Arithmetic 39
Using the M Register
7KH DQG NH\VSHUIRUPPHPRU\RSHUDWLRQVRQ
DVLQJOHVWRUDJHUHJLVWHUFDOOHGWKH0UHJLVWHU,QPRVW
FDVHVLWLVXQQHFHVVDU\WRFOHDUWKH0UHJLVWHUVLQFH
UHSODFHVWKHSUHYLRXVFRQWHQWV+RZHYHU\RXFDQFOHDU
WKH0UHJLVWHUE\SUHVVLQJ
7RDGGDVHULHVRI
QXPEHUVWRWKH0UHJLVWHUXVH
WRVWRUHWKHILUVW
QXPEHUDQG
WRDGGVXEVHTXHQWQXPEHUV7RVXEWUDFW
WKHGLVSOD\HGQXPEHUIURPWKHQXPEHULQWKH0UHJLVWHUSUHVV
IROORZHGE\
Example.8VHWKH0UHJLVWHUWRDGGDQG7KHQVXEWUDFW
DQGUHFDOOWKHUHVXOW
64.00
&DOFXODWHV
Keys Description
6WRUHVGLVSOD\HGQXPEHULQWKH0UHJLVWHU
5HFDOOVQXPEHUIURPWKH0UHJLVWHU
$GGVGLVSOD\HGQXPEHUWRWKH0UHJLVWHU
Keys: Display: Description:
17.00
6WRUHVLQ0UHJLVWHU
14.25
$GGVWR0
UHJLVWHU
16.95
$GGVWR0
UHJLVWHU
–4.65
$GGV²WR0
UHJLVWHU
43.55
5HFDOOVFRQWHQWVRIWKH
0UHJLVWHU
10B.book Page 39 Wednesday, June 21, 2000 5:19 PM