could anyone help me in links for ( tutorials and program download ) in assembly language and which program is used to write and run it, which program also is used to run and write a c code in win vista?
could anyone help me in links for ( tutorials and program download ) in assembly language and which program is used to write and run it, which program also is used to run and write a c code in win vista?
1) You can use Google to search for things yourself.
2) You can give this a try: WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
3) There is no program used to "run C code". I am assuming you are referring to a compiler to compile it and an IDE to do this visually.
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
Take a look at PellesC... It does C for windows and CE devices and includes a macro assembler.
smorgasbordet - Pelles C
If you get the 6.0 version it comes with Vista windows headers and libs. The newer 650 version comes with windows 7 headers and libs.
You will also probably want the windows documentation, which includes samples, and several useful tools...
Download details: Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1
There are lots of good tutorials and e-books, you can find and download. A course would be advised if you are new at this.
thx for the replies... i found in the net that i can use notepad to write the assembly code and i must save the file as fname.asm but how to run it and how can i get the bin folder and tasm folder where i should save the .asm files. how to use the cmd to run it?
EMU8086
You need to use an emulator like the one above. (assuming you have an x86 system)
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
You don't run .asm files... you compile them into .exe files using a compiler and a linker such as TASM or MASM (which you must download and install on your computer). The compiler translates the source code into an object file containing your code, the linker assembles all the objects into an executable program file. And these are steps you cannot avoid.
Once they are properly compiled you can run them either by clicking on them or by typing their name in a command window.
While you can write ASM files in notepad... you cannot compile or link them there and you certainly can't use notepad for debugging and testing. For those tasks your best bet is a specialized IDE (Integrated Development Environment) like CodeBlocks or PellesC (amongst others).
Before you get too far into this, I strongly suggest you get some programming tutorials for C and ASM ... Take a course if you can. No joke... I can tell from your posts, this isn't what you think it is.
Also note that Assembly Language programming is not for the new or the weak of heart amongst coders. I've been programming on and off for 25+ years and I still balk at trying to write pure ASM code.
U can download masm from MASM32 Downloads or from the Microsoft Site https://www.microsoft.com/downloads/...2-7ef370530c64 It is a good assembler for 8086 programs.
Just write your code in a .asm file. Save it. Compile it (masm filename), link it and then debug the exe or execute it as you wish.