Commit graph pcjs/modules/shared/lib/int36.js
Author SHA1 Message Date
Jeff Parsons
80756041f3 Int36.toDecimal() now supports any value up to 72 bits 2017-02-16 15:58:50 -08:00
Jeff Parsons
4de50acdf1 Added alternate Int36 addition/subtraction overflow/underflow detection logic as a verification check 2017-02-16 14:05:05 -08:00
Jeff Parsons
048a10aac6 Fixed toDecimal() for large extended Int36 values (although there are still some very large values that trigger an error) 2017-02-15 23:43:23 -08:00
Jeff Parsons
4d94b5812b Cleaned up divExtended() 2017-02-15 22:27:03 -08:00
Jeff Parsons
40311e82b2 Added Int36 overflow/underflow detection 2017-02-15 22:20:07 -08:00
Jeff Parsons
798fae1898 Updated Int36 comments 2017-02-15 16:35:15 -08:00
Jeff Parsons
6bc0d8ac49 Trying a second approach to the Int36 class that sticks to unsigned numbers internally (only downside so far is that the detecting arithmetic overflow/underflow is more work and hasn't been implemented yet) 2017-02-15 16:16:32 -08:00
Jeff Parsons
259dd7d66f Updated comments 2017-02-15 11:54:16 -08:00
Jeff Parsons
3a33ffdd50 A few more toDecimal() fixes 2017-02-14 17:55:41 -08:00
Jeff Parsons
656f7e6796 Numerous fixes to Int36 class, with improved support for 72-bit mul(), div(), and toString()/toDecimal() 2017-02-14 13:12:27 -08:00
Jeff Parsons
7131e471ac Implemented 36-bit division with support for (up to) 72-bit dividends 2017-02-13 14:04:00 -08:00
Jeff Parsons
a0ddaa2239 Implemented 36-bit multiplication with support for (up to) 72-bit results 2017-02-13 11:55:29 -08:00
Jeff Parsons
f03a5686e5 Implemented 36-bit multiplication with support for (up to) 72-bit results 2017-02-13 11:46:58 -08:00
Jeff Parsons
bfab39cf5a Skeleton of an Int36 class that may be used to support 36-bit integers in a PDP-10 simulation 2017-02-12 11:21:49 -08:00