DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: What version of assembly? Any  (Read 23,076 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
What version of assembly? Any
« on: June 21, 2008, 07:49 PM »
You can use any assembler and any flavor of assembly that you want for these assignments.
Maybe people can post various assemblers they like for different platforms?

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: What version of assembly? Any
« Reply #1 on: June 23, 2008, 01:17 PM »
Here's a bunch of free assemblers for the x86 platform: FASM, NASM, YASM. GNU AS for the masochists :)
- carpe noctem

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: What version of assembly? Any
« Reply #2 on: February 11, 2009, 07:59 PM »
Masm32 is also fun to play with.  What makes it fun is that it includes Windows headers and macros to make it simpler to get started doing Windows apps.  iirc there's a 32 bit example that pops up an OK dialog that assembles to 5 kb(since all it does is call the windows dll to do it.)  :)

It has an "Invoke" syntax that you can use if you hate typing all the pushes and pops.

I think the last time I messed with it was using Win98 but it seems to still be out there. :)

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: What version of assembly? Any
« Reply #3 on: February 11, 2009, 09:57 PM »
You can compile a MessageBox() to less than a kb under FASM ;)

Ehtyar.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: What version of assembly? Any
« Reply #4 on: February 11, 2009, 11:17 PM »
You can compile a MessageBox() to less than a kb under FASM ;)

Ehtyar.

It's probably the same.  It's been several years since I used it.  All it does is invoke the function in the dll so I don't think there's too many ways to make that smaller.

The main nice feature is the Windows headers and I seem to remember there was some cool lookup function that made it easy to get the params to a lot of win functions.  But my memory has faded. :)

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: What version of assembly? Any
« Reply #5 on: February 11, 2009, 11:35 PM »
Friends don't let... oh wait, I'm not bringing that here.

FASM has an advantage over MASM in that it's free & has source code available - and adopts support for new instruction sets a lot faster than MASM does. And it offers pretty much what MASM does anyway, with the notable exception of return values from macros.
- carpe noctem

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
« Last Edit: February 11, 2009, 11:49 PM by ewemoa »

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: What version of assembly? Any
« Reply #7 on: February 11, 2009, 11:56 PM »
HLA does count, but pick where you ask for help carefully.

Ehtyar.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: What version of assembly? Any
« Reply #8 on: February 11, 2009, 11:57 PM »
http://webster.cs.ucr.edu/AsmTools/WhichAsm.html (written by HLA author?)
Yep, webster is Randall Hyde's site.

While HLA isn't my cup of tea, I think it's lame that some people claim that it isn't assembly.
- carpe noctem

Cpilot

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 293
    • Coding Snacks
Re: What version of assembly? Any
« Reply #9 on: February 12, 2009, 03:29 AM »
Here's one that's under development.
easm
If you're interested in supporting something new and maybe a little different.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: What version of assembly? Any
« Reply #10 on: February 12, 2009, 04:11 AM »
Thanks for the feedback [1].

I noticed the following text in Randall Hyde's comparison:

Quote
HLA provides an option to translate HLA source code to that used by several other assemblers (as this is being written, HLA provides the ability to translate HLA source code into MASM, TASM, Gas, or FASM format (NASM is planned and being worked on while this is being written).

If this works well, perhaps it is worth starting with HLA and then consider other options (leaning toward NASM atm) later.  The idea here being, perhaps the learning curve can be on the gentler side.

I guess HLA has an associated book also in online form (in addition to print):

  http://webster.cs.ucr.edu/AoA/index.html


[1] Ehtyar, is there something more specific about being careful in asking for help on this you might not mind sharing?

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: What version of assembly? Any
« Reply #11 on: February 12, 2009, 04:49 AM »
On the newsgroups in particular there are some very very big flame wars taking place revolving around HLA not being real asm etc etc. Before you ask for help with HLA on a dedicated forum, be sure to poke around and see what kind of reaction other have gotten to questions about it.

Ehtyar.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: What version of assembly? Any
« Reply #12 on: February 12, 2009, 05:40 AM »
Thanks a lot for this tip -- perhaps I can remain relatively unsinged ;)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: What version of assembly? Any
« Reply #13 on: February 12, 2009, 03:29 PM »
Thanks a lot for this tip -- perhaps I can remain relatively unsinged ;)

Another thing you can do if you program in other languages, some allow embedded asm statements or procedures/functions.  That can give you a testbed of a running program and you just code a function in asm.  Gives an idea of how the pushes and pops work with parameters, stack setup etc..

Crush

  • Hello dude!
  • Member
  • Joined in 2006
  • **
  • Posts: 402
    • Participated in NANY Challenge Three Times
Re: What version of assembly? Any
« Reply #14 on: February 12, 2009, 04:11 PM »
A rather good one is the 0ok-Assembler from Farbrausch.

mitzevo

  • Control is power
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 462
    • Linux User
    • Furry Fandom Badge - Furry Fandom
Re: What version of assembly? Any
« Reply #15 on: February 12, 2009, 04:23 PM »
Just has to be an Assembly area doesn't there!  ;D
The clock is running. Make the most of today. Time waits for no man. Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it is called the present.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: What version of assembly? Any
« Reply #16 on: February 12, 2009, 06:18 PM »
A rather good one is the 0ok-Assembler from Farbrausch.
Have Farbrausch changed name to 0ok?
- carpe noctem

Crush

  • Hello dude!
  • Member
  • Joined in 2006
  • **
  • Posts: 402
    • Participated in NANY Challenge Three Times
Re: What version of assembly? Any
« Reply #17 on: February 12, 2009, 07:51 PM »
No, Bero of 0ok is now also a member of Farbrausch.
« Last Edit: February 12, 2009, 08:31 PM by Crush »

Original address: https://www.donationcoder.com/forum/index.php?topic=13786.0