THERE IT IS!!!!!
No, nobody here nor the many other Assembly Forums or Programming Forums will just "give" you code. You learn nothing by us doing that. If I were to give you code, I purposely add bugs to it and do not tell you about them.
What you need to do is, do some research on your own on what a binary number is and a decimal number and how to convert between the two, write some code, and when stuck, as for help. We will be more than happy to help if YOU show some effort!