Assembly language ???

This is a discussion on Assembly language ??? within the C Programming forums, part of the General Programming Boards category; could anyone help me in links for ( tutorials and program download ) in assembly language and which program is ...

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    2

    Assembly language ???

    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?

  2. #2
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    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.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by kinda View Post
    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?
    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.

  4. #4
    Registered User
    Join Date
    Nov 2010
    Posts
    2
    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?

  5. #5
    C-no_Ob Bennie98's Avatar
    Join Date
    Oct 2010
    Location
    Ledeberg, Ghent, East-Flanders, Belgium
    Posts
    49
    Quote Originally Posted by kinda View Post
    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?
    that's why it's handier to use a program for writing in C
    recommend Pelles C

    don't know how to use cmd for this however

  6. #6
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    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.

  7. #7
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by kinda View Post
    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?
    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.

  8. #8
    Registered User
    Join Date
    Oct 2010
    Posts
    2
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Assembly language.
    By JOZZY& Wakko in forum Tech Board
    Replies: 0
    Last Post: 12-18-2009, 05:58 AM
  2. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 09:09 AM
  3. Assembly Language Forums??
    By gqchynaboy in forum Tech Board
    Replies: 3
    Last Post: 11-22-2004, 06:59 AM
  4. Language Script..
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 03-30-2003, 06:48 AM
  5. help in assembly language
    By ema in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 12-14-2002, 02:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21