flouthoc / calc.asm
- понедельник, 27 июня 2016 г. в 03:14:26
Assembly
Minimal arithmetic calculator in x86 assembly
This a simple arithmetic calculator written in x86 assembly with minimalistic operation support like Addition
, Subtraction
, Multiplication
and Division
.I have tried to kept source highly documented by commenting on each line so that beginners can easily understand the source.If you feel that these comments source or anything can be improved create a pull-request now. If you found it useful Star it or follow me on github
./calc <operator> <operand1> <operand2>
"+"
For Addition "-"
For Subtraction "*"
For Multiplication "/"
For Division
nasm -f elf64 -o calc.o calc.asm
ld -d calc calc.o
or
make
http://0xax.blogspot.in/search/label/asm
Twitter @flouthoc
Email flouthoc@gmail.com