The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: 0x401000 on November 17, 2009, 10:55:08 PM

Title: unix bc code to asm
Post by: 0x401000 on November 17, 2009, 10:55:08 PM
Someone can help translate the code from bc - basic calculator in assembler. This syntactical calculator from Unix. Thank you!
Title: Re: unix bc code to asm
Post by: dedndave on November 18, 2009, 12:01:37 AM
i looked at it and couldn't make sense of it - lol
it has been over 20 years since i worked on a unix system
one thing i did see - you are working with some large integers
you may want a "bignum library"
Drizz has one, although i have never used it
there are others if you google around
Title: Re: unix bc code to asm
Post by: 0x401000 on November 18, 2009, 11:59:21 AM
Yes, thanks, I found that library. Here C + + like syntax, large numbers can be replaced, the main transfer algorithm. Unfortunately C + + I have just started to learn, so to translate itself fails. Thank you!