Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: The Assembly Language

  1. #1
    Member
    Join Date
    Sep 2003
    Location
    Cairo, Egypt
    Posts
    23
    I thought of trying to pick up the assembly language and learn it since everyone is
    giving it credit. The problem is that I don't where to get it from, so can anyone help me???
    I came here to shit and stink,
    But all I do is sit and think.

  2. Software & Hardware   -   #2
    4play's Avatar knob jockey
    Join Date
    Jan 2003
    Location
    London
    Age
    41
    Posts
    3,824
    hmm i would learn c or c++ before assembly mainly because asm is a very complex language.


    here microsfoft give away a free asm compiler called masn.

  3. Software & Hardware   -   #3
    The only things that I've really seen assembly being used for these days is cracking/disassembling programs. If you just want an easy way to start writing programs look into Delphi and if you plan on doing anything more advanced (games/graphics) go for C++.

  4. Software & Hardware   -   #4
    Assembly is used in quite a few programs but they are usually only small parts where the speed of assembly is needed. The early DirectX shaders were written in assembly. It's just really impractical to make anything big in assembly, it would just take forever.

  5. Software & Hardware   -   #5
    Member
    Join Date
    Sep 2003
    Location
    Cairo, Egypt
    Posts
    23
    I have tried to learn C++ a few months back but it seemed complex but now it looks like assmebly is much harder as you have said so i think i will try to learn C++ again. Anyway thanks for your help.

    Is it true that Microsoft used Delphi to build Windows???
    I came here to shit and stink,
    But all I do is sit and think.

  6. Software & Hardware   -   #6
    I doubt it, but delphi is very nice to use much better than visual basic and much easier to create windows applications (as opposed to command line) than visual C++.
    I'd recommend you get an understanding of programming by getting something like sams learn c++ in 21 days and write some command line stuff and then if you are still hanging in there switch to delphi and write whatever programs you want. (Going from c to delphi is quite easy, its just some syntax changes you have to learn).

  7. Software & Hardware   -   #7
    Poster
    Join Date
    Jan 2003
    Location
    United Kingdom
    Posts
    1,184
    Yes, Intel x86 was used to design K++, but C++ is a better alternative. Assembly involves using commands like MOV etc., to print an application saying "Hello World!" in ASM would take about a dozen lines whilst in C:

    Code:
    #include <stdio.h>
    using namespace std;
    
      void main()
        {
          printf("Hello World!\n");
        }
    In C++:

    Code:
    #include <iostream.h>
    using namespace std;
    
      int main()
        {
          cout << "Hello World\n" << endl;
          return 0;
        }
    C++ remains portable, ASM isn't but is faster.

  8. Software & Hardware   -   #8
    Originally posted by Amarjit@14 September 2003 - 13:45
    Yes, Intel x86 was used to design K++, but C++ is a better alternative. Assembly involves using commands like MOV etc., to print an application saying "Hello World!" in ASM would take about a dozen lines whilst in C:

    Code:
    #include <stdio.h>
    using namespace std;
    
     void main()
      {
       printf("Hello World!\n");
      }
    In C++:

    Code:
    #include <iostream.h>
    using namespace std;
    
     int main()
      {
       cout << "Hello World\n" << endl;
       return 0;
      }
    C++ remains portable, ASM isn't but is faster.
    C++ is a good language to learn as a first language, but learning assembly is also a good way to start. The learning curve is very steep, but the understanding of the architecture of modern computers that you will learn with assembly is worth it. Yes learning asm on segmented architectures is hard, but its also very interesting.

    The code is faster, smaller, and very easy to debug with modern tools.

    As for your code:
    There is no "using" keyword in C, likewise, there are no namespaces, so your C program is incorrect. C has no concept of namespaces.

    Your C++ example is very outdated (as of 1998), when the standard was published, code such as yours is no longer compliant. The header for the standard iosteam library is now <iostream> (no .h, likewise with any C++ headers).

    Also, the "&#092;n" at the end of your string is redundant, as &#39;&#092;n&#39; is appended by the std::endl object, which also flushes the stream.

    Portability is a key factor in deciding language, but how often have you had your cod ecompiled on a different architecture? asm remains a good choice to learn, especially seeing as the x86 architecture is not going anywhere. Itanium is still off in the distant future, and AMD Opteron/Athlon64 have full 32-bit compatibility.

    Monica

  9. Software & Hardware   -   #9
    Originally posted by Déjà Vu@14 September 2003 - 13:38
    Is it true that Microsoft used Delphi to build Windows???
    No, it would not have been possible. Windows came first... besides, delphi requires windows (yes, with the exception of kylix and its offspring). Behind all the component architecture, and the VCL, there are still low level calls to the windows api functions, which are used the construct the components.

    Microsoft did use Pascal for the early versions of Windows, before windows 3, which was a complete rewrite in C.

    Monica

  10. Software & Hardware   -   #10
    Ynhockey's Avatar Poster
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    406
    Learn Pascal first.

    Benefits:

    1) Easier than any of the aforementioned languages, but it&#39;s very similar to Delphi and C (in fact, Delphi uses Object Pascal).

    2) You won&#39;t lose any functionality, just some freedom, but that&#39;s ok, VB gives you much less anyway.

    3) Pascal was made for learning purposes, so when you learn Pascal, you&#39;ll have a really good understanding of programming (well, depends on how well you learn it...)

    Pascal owns

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •