Results 1 to 39 of 39

Thread: Which assembly compiler do you use?

  1. #1
    Guest
    No, this is not some stupid childish message saying "I'm the first loser to post here!!!"

    Which version of assembly do you guys use, and which do you think is the best. Currently, I'm using MASM (Microsoft's version.)

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Oy, I was the first looser to post a messagage on the C++ forum, I freely admit to being a geek but being a looser implies that I loose things and I don't, I don't even enter them, I'm too lazy to loose.

    Staying on the compiler Topic I want to put assembler into VB, I can probable do thsi by writing a function in assembler with four long integer in parameters to a Byte array and run it using the CallWindowProc API, I don't know if that makes sense but I wan't to do It anyway. I havn't got round to learning assembler yet so I'm not sure If that's possible, Do I need a compiler to doit or can I use constants and write directly to the byte array.

    are there any good places to learn windows assembler by the way?

  3. #3
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    Talking Sam's a loser

    Because he spelt losers loosers.

    Tihihihihi.



    Bye!

    [Edited by V(ery) Basic on 04-25-2000 at 06:49 AM]
    Courgettes.

  4. #4
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089

    Talking

    shut it

  5. #5
    Guest
    I have a HUGE tutorial for newbies and I will post it up for download as soon as I can find it. I know it's on my Hard drive but I can't find it right now.

  6. #6
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I want, I want.

  7. #7
    Guest
    So that means we can port Assembly stuff over to VB? that's cool, but need to know how to do it, there's a program, called "Debug.exe" I did a mouse routine in it once for QB... I forgot how to use it now, but It's cool... so how do we use ASM in VB?

  8. #8
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    It's more of an I think you can, you need to give it a set interface so you can call it as a window procedure without it crashing hideously.

    I havn't learnt asm yet

    write your function to a byte array, you need to do it in Hex or binary, you can't use the mnomics unless you declare a load of constants.

    make sure your function has 4 long integers in and returns 1, the integers can be pointers to large amounts of data If you like.

    then to run your byte array using the callwindowproc API with varptr(bytProgram(0)) as your first parameter and the four longs as your others.

    I'd assume this will work, it's possible to copy a vb procedure into a byte array using copymemory and Addressof and that will run.

  9. #9
    New Member
    Join Date
    Dec 1999
    Location
    Wakefield, West Yorkshire, UK
    Posts
    10

    Question

    So is Assembly still used in the workplace?

    Sorry slack 16 year-old - know's nothing
    =======
    Dan

  10. #10
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I wanted to use it to compile code at runtime so as to create a fast maths parser. (So the user can type an equation into a textbox and have it evaluated) but it looks like Java is the thing to use, I just don't have a java compiler.

    I still want to learn it though. It's also used for programming microchips to put in any king of machine (Toasters, Waching machines Etc. but that's a different type of assembly.

  11. #11
    New Member
    Join Date
    Aug 1999
    Posts
    13

    Cool

    Asmodia - Assembly is used in many things. Because of assembly being direct machine code, it is used for many 3D-Games because other forms of code don't have enough speed to process such data at such a high rate..

    -KnightM

  12. #12
    New Member
    Join Date
    May 2000
    Location
    Netherland
    Posts
    1

    Angry Forget about it!

    To use assembly in Windows defeats the whole purpose of working with a operating system. In the first place you have to be a master hacker if you want to run even the simplest assembly program in the Protect Mode environment of windows. That is because of all the overhead and calls to the operating system that it would be impossible to get anything done.
    Second: If , and if you manage to get a program running, chances are that it will only run on your computer.
    Even Windows is written entirely in C (maybe with a few assembly modules).
    I have programmed assembly intensivly in the past under the old Atari, Comodore, Amiga, 80486 and the old pentuims and DSP's. We did assembly for the same reason you want to learn it now: Performance! But believe, the performance/price ratio of hardware outweight any considaration to go back to assembly. Just to write some simple routines, you'll be typing the code all they long without an end in sight while in C++ or visual basic you'll be ready in a minute. Besides, you have to trust you're compiler that it will build the fastest assembly code for you.
    B^)

  13. #13
    New Member
    Join Date
    Dec 1999
    Location
    Wakefield, West Yorkshire, UK
    Posts
    10

    Thumbs down Assembly - No way!

    forget about what? I think I'll be sticking to C++ and VB then. I did wonder about programming in a language that wasn't built or made for Windows, but surely if it is a lower-level language than C, then you could get around the windows security very easily couldn't you?

    Anyway, I'm sticking to good ol' VB, I'll leave Assembly for the pro's!
    =======
    Dan

  14. #14
    Guest
    Assembly is pretty hard. I have a sample Program on how to create an Application. It takes MANY lines of code.

  15. #15
    New Member
    Join Date
    Sep 1999
    Posts
    4

    Smile Tutorial request

    Megatron, I'd like to see that huge tutorial you talked about awhile back. I'm just beginning to learn Assembly. Thanks.

    [email protected]

  16. #16
    Guest
    Sorry As i explained in the Chit Chat fourm, I do not have it on my harddisk. I thought I did before but I must have deleted it.

  17. #17
    Guest

    Here! I just found a link that Sam had given me. It supposed to have been a book online for Beta testing or something and I guess they forgot to take it off.

    http://burks.bton.ac.uk/burks/langua...m/artof001.htm

  18. #18
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Boulder, Colorado, USA
    Posts
    325
    ASM is hard? No, it just takes a while to make a program that is useful. ASM is sweet for making high speed/small apps. Drivers and 3D apps use lots of ASM.. if not inline ASM in C/C++. It's also great for making high speed emulated CPU cores.
    -Shickadance

  19. #19
    Member
    Join Date
    Jun 2000
    Location
    Gainesville, Ga
    Posts
    50

    It's tough

    I've been trying to learn it for the past 5 years.
    at best i'm still just mediocre.

    But if it were not for ASM where would windows be?
    It seems to me alot of the DLL files have alot of
    rutines in them that are asm.

    I started by compiling with C++, but change to
    QB4.5 than 7.1, bacause I like the language alot
    better.

    I,m not giving up on ASM, because it makes me feel
    I'm talking directly to the CPU one on one.
    And as was said before it does run very fast.
    Scott Cato
    VB6s

  20. #20
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Originally posted by WildGhost
    So that means we can port Assembly stuff over to VB? that's cool, but need to know how to do it, there's a program, called "Debug.exe" I did a mouse routine in it once for QB... I forgot how to use it now, but It's cool... so how do we use ASM in VB?
    You can write a dll in asm and compile it with the free Netwide Assembler (NASM). Then you can call the dll from a vb program. Because you have direct memory access in ASM, you can write graphics manipulation routines perfectly in ASM an call the dll from VB.

  21. #21
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Talking Masm

    Hi All,

    I've been hearing a lot about Masm but I don't own it so I can't judge it for myself. Could somebody please give me a direct download link to the zip? Thanks!
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  22. #22
    Guest
    I can send it to you if you give me your E-mail.

  23. #23
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Thumbs up Thanks

    Thanks Megatron,

    My Email is [email protected]
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  24. #24
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Could you send it to me, too? I thought I'd better finish starting to learn. I read through that 'Art of Assembly' thing, and my dad had a primer book on Assembly from ages ago. I just don't have an assembler...

    PS: Those hypercubes are still doing my brain in!
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  25. #25
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Thumbs up

    Hey guys,

    I've been looking at ASM for a couple of months and just got a great book from amazon.com with the masm compiler etc. I don't know much about it yet but there is one thing I came across on the net that may interest you.

    http://www.pbq.com.au/home/hutch/masm.htm

    It's MASM32, it has windows inc for api calls, and a new "Invoke" macro so you can call a funtion witout all that push value to register in reverse order stuff.

    There are heaps of samples there of windows apps, most fairly simple but some are like notepad with toolbars and menus etc. they compile to about 5k exe's and stand alone.

    after seeing the software prompted me to buy the book, I can read the api code but my assembly skills are still quite poor.

    I think knowing VB and Assembly would be very complementry bacause they are at opposite ends of the programming spectrum. Why bother with C++, we like VB because it's so productive for app design, but at times when we need lots of speed and tiny exes... why not go the whole hog? ... to asm
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  26. #26
    Guest
    Rino_2 and Parksie: I just checked my hardisk and MASM is 4MB (I only have a 56K modem). As of right now, I cannot send it because I'm downloading a 128MB file and want to get it done and out of the way before I do any more transferring. Give me about a couple days and I'll send it.

    Regards


  27. #27
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Thumbs up

    Thanks Megatron
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  28. #28
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Good on you Megatron. I suppose it's things like this that distinguish the Gurus from us members .
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  29. #29
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    I know everybody has abandoned this thread, but...

    Could I get it too, Megatron?

    [email protected]


    I'm half way through AoA. I've also destroyed an entire Amazonian rainforest for the paper. Sorry.
    Courgettes.

  30. #30
    New Member
    Join Date
    Oct 2000
    Posts
    1

    i love assembly

    the best way to learn assembly is to do some inline in C++ with the art of assembly link above.
    Once you get the hang of it, it's pretty simple, and enjoyable, and you'll notice that compilers add a LOT of un-needed crap. For example, I watched the diasassembly window in VC++ and noticed it moved a register to a variable and back, and plenty of unrequired re-loading of registers. Comparing ASM to VC++ is like comparing hand-written html to WYSIWYG generated html.

    I wrote a routine in VC++, and then wrote it in inline assembly in VC++ and compared the results. The asm function was over 10x faster.
    Now think if that same function were written in VB, or Java. The asm function would be hundreds of times faster and work on all 32-bit x86 computers. x86 isn't going anywhere anytime soon, and when it does, its replacement will most likely use similar op codes that you can figure out quickly. There will always be a need for people to create compilers, hardware interfaces, etc.

    Some people are just born to be speed freaks. I can never look at C++ code the same way again, and VB just makes me want to throw up.

  31. #31
    Guest

    Cool Assembly RULES!

    As an Assembly programmer, I have found a LOT of useful information on the internet about it over the past 5 years. One thing that I have seen is this.. It's not for those who can't understand math.

    With that said and done, if you can figure out math, you can understand assembly. EVEN IF YOU HAVE FAILED TO UNDERSTAND IT IN THE PAST! There are 3 MAIN Assemblers out there. TASM, MASM, and NASM. I have ALL of them and use them all for various things.

    MASM - You can get this free from Microcrap. I use it mainly for Windows programs. That's all. 32-Bit compiler.

    TASM - This one is for sale from Borland. It's also in there C++ Builder version as an added feature. I use this also ONLY for Windows programs. 16 and 32 Bit compilers.

    NASM - Ahh.. (in my opinion) it's the BEST. I use it for ALL of my DOS and Windows stuff. It's free too. ALSO, since I am making my own OS, this little GEM has come in handy to compile BOTH my 16 and 32 Bit Operating Systems.

    Now.. as far as the Language goes, it's not as hard as you think. Its actually quite simple. However, if you cannot understand MATH, then you definately cannot get this! Assembly is as close to Machine language you can get. It's NOT machine language. Do NOT get that confused. Machine language is the Nibbles, Bits, Bytes, Words, and Double Words known as Binary Language. If you wrote out a whole program in Binarry, it would take you forever, but NOT impossible. Assembly was created to speed that up.

    If you want to know more, then just ICQ me. (38095036) I am looking for eager assemblers for some projects I have.

    Why make things in assembler you ask? Well, it's not good to program in ASM for games. That's why C/C++ was created. However, for down and dirty Virii, Virri detectors, Drivers for the different media cards (like Video), and just plain creating a DOS BOOTSTRAP, that's why you need assembly. It's small and doesn't need a lot of power or space on the hard drive.

    I do not recomend creating a HUGE program in ASM. BUT if you did, you definately will be recognized as one of the greats!

    Are people (companies) looking for ASM programmers? No.. No need to since C/C++/VB is still here. Again, I repeat, ASM is mainly used for small applications or drivers nowdays.

    Ok, some of you are probably sitting wondering why I keep saying that you have to understand MATH. It's simple. Math as in calculus, or triginomentry etc. Not just simple adding and subtracting. I ACED math in school. That's why ASM is soo easy to understand for me. However, some of you may not have been as fortunate. MATH is it kids, LEARN IT WELL!

    Well, I hope this helps.


  32. #32
    Addicted Member ßädbö¥'s Avatar
    Join Date
    Jul 2003
    Location
    I Lost somewhere !!
    Posts
    198
    Originally posted by
    I can send it to you if you give me your E-mail.
    i also want the MASM compliler and all the relative files to run a programme made in ASM... I m new 2 Assembly .... i just start... i dont know anything about it... plz plz plz plz help me... and plz send me the MASM ( is MASM best ? or there is another 1 ? ) plz help me

    thnx

    ßädbö¥ Rü£z

    ICQ # : 204178672
    AOL SN : Badboy9jan
    badboy9jan<img src="images/smilies/s...g" />gmail.com

  33. #33
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    NASM is pretty good too.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  34. #34
    Addicted Member ßädbö¥'s Avatar
    Join Date
    Jul 2003
    Location
    I Lost somewhere !!
    Posts
    198
    Can any 1 send me Nasm and all related files like linter etc.... ? thnx

    ßädbö¥ Rü£z

    ICQ # : 204178672
    AOL SN : Badboy9jan
    badboy9jan<img src="images/smilies/s...g" />gmail.com

  35. #35
    Addicted Member ßädbö¥'s Avatar
    Join Date
    Jul 2003
    Location
    I Lost somewhere !!
    Posts
    198
    Can any 1 send me Nasm and all related files like linter etc.... ? thnx

    ßädbö¥ Rü£z

    ICQ # : 204178672
    AOL SN : Badboy9jan
    badboy9jan<img src="images/smilies/s...g" />gmail.com

  36. #36
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  37. #37
    Addicted Member ßädbö¥'s Avatar
    Join Date
    Jul 2003
    Location
    I Lost somewhere !!
    Posts
    198
    Thnx Darkwraith .....

    ßädbö¥ Rü£z

    ICQ # : 204178672
    AOL SN : Badboy9jan
    badboy9jan<img src="images/smilies/s...g" />gmail.com

  38. #38
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Holy S***! Reviving the oldest thread in the assembly forum?

    Badboy, do you really expect someone who is not even in the member database anymore to send you MASM?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  39. #39
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Holy S***! Reviving the oldest thread in the assembly forum?
    And I can't take credit for this one either!
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

Posting Permissions

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



Click Here to Expand Forum to Full Width