Well this base64 algorithm needs to be implemented in an electronic
project and it uses a microprocessor.. so I need to burn the program in
a chip.. for that I need the assembly program...
And this program is also to be implemented in an older machine which
uses .386 processor
Well, here's the thing. The code you posted, all of the interesting stuff
is implemented in .NET. So unless you've got a way to run the .NET
framework on your electronic project, it doesn't matter _what_ you compile
that code to, it's not going to work.
Base64 isn't all that hard to implement yourself. It barely qualifies as
encryption, IMHO. Sort of like ROT-13 is encryption.
The basic functionality you're trying to implement would be relatively
easy even in C++. So that's certainly an option. I would guess that a
little Googling would probably even turn up a handful or so of existing
implementations for Base64 in C or C++.
Not that you asked, but it seems to me that you have the additional
problem of what other services are available on the eletronic project.
The code you posted not only does Base64 encoding, it also assumes a
console with standard input and output, and some sort of file i/o API.
The standard CRT includes these things, but it's not clear from your post
that you could even use the standard CRT on your electronic project.
Basically, it seems pretty clear that whatever you're trying to do, .NET
isn't going to help you. You can't write .NET code to implement
functionality unless you can run the resulting executable in an
environment where .NET is supported. It doesn't sound like that's the
case here.
Pete