I am wondering if it is really possible to create an 8085 assembly language program that calculates the value of 255 factorial. What I have done so far is 18 factorial max.
Asked
Active
Viewed 198 times
1
-
1You can, but 255! has 505 decimal digits, so you'll need to implement some routines for handling arbitrary precision integer arithmetic (at least for multiply and add). – Paul R Mar 24 '17 at 14:15
-
1@PaulR what do you need the add for? ;) – Tommylee2k Mar 24 '17 at 14:32
-
1@Tommylee2k: my bad - just multiply then! ;-) – Paul R Mar 24 '17 at 14:35
-
just found this: http://stackoverflow.com/questions/2416483/how-to-find-a-factorial ... the `log(i)/log(10)` version is neat – Tommylee2k Mar 24 '17 at 14:43
-
1yes. (but not trivial) – Ped7g Mar 24 '17 at 15:33