Author Topic: Can NASM do the following in Ubuntu  (Read 9400 times)

Jack Shankle

  • Guest
Can NASM do the following in Ubuntu
« on: February 19, 2009, 03:48:33 PM »
I am an old MASM32 programmer and would like to wean myself from Windozs. I just recently perused FASM and found it needlessly evasive and hard to use.
Will NASM do the following:

1.  Give me the ability to create an executable module by clicking on an Icon that I can pass on to a user. Or does it have some other way of doing the same thing?
2. Segment registers should NOT have to be used for far jumps.
This makes for ridiculous code.
3. Be able to place a text character anywhere on the screen.
4. Be able to change the size of a text character.
5. Be able to change the color of a text character.
6. Be able to draw a line with color. (not a series of pixels)
7. Be able to draw a circle with color. (not a series of pixels)
8. Be able to generate a bit map.
9. Would be nice if it had GUI capabilities.
10. Would be nice if there was a book like "NASM for Dummies" to help me get acclimated to the language.

If someone has a few moments to answer these questions it would save me a lot of grief. Thanks

nobody

  • Guest
Re: Can NASM do the following in Ubuntu
« Reply #1 on: February 19, 2009, 04:35:13 PM »
Pretty much "no" on all counts. I don't think Nasm (or any assembler) is what you're looking for.

Best,
Frank

nobody

  • Guest
Re: Can NASM do the following in Ubuntu
« Reply #2 on: February 19, 2009, 07:28:09 PM »
,--
I am an old MASM32 programmer and would like to wean myself from Windozs. I just recently perused FASM and found it needlessly evasive and hard to use.
Will NASM do the following:
`--

Okay, now you will need to forget everything you learned about the Win32 API functions -- the Linux environment lacks support for them.  Go to http://asm.sourceforge.net/ to learn about System Calls.

,--
1. Give me the ability to create an executable module by clicking on an Icon that I can pass on to a user. Or does it have some other way of doing the same thing?
`--

MASM32 didn't provide this feature either.  In a Linux environment, this functionality is provided by the window manager.  You will have to determine which window manager your clients will be using (GNOME, KDE, etc.. or none at all) and provide them with an installation script that will activate this functionality.

http://en.wikipedia.org/wiki/Window_manager

,--
2. Segment registers should NOT have to be used for far jumps.
This makes for ridiculous code.
`--

MASM32 didn't provide this feature either.

,--
3. Be able to place a text character anywhere on the screen.
`--

MASM32 didn't provide this feature either.  This service is provided by the Operating System.

,--
4. Be able to change the size of a text character.
`--

MASM32 didn't provide this feature either.  This service is provided by the Operating System.

,--
5. Be able to change the color of a text character.
`--

MASM32 didn't provide this feature either.  This service is provided by the Operating System.

,--
6. Be able to draw a line with color. (not a series of pixels)
`--

MASM32 didn't provide this feature either.  This service is provided by the Xorg.

http://www.x.org/wiki/

,--
7. Be able to draw a circle with color. (not a series of pixels)
`--

MASM32 didn't provide this feature either.  This service is provided by the Xorg.

,--
8. Be able to generate a bit map.
`--

MASM32 didn't provide this feature either.  This is the result of learning how to program.

http://en.wikipedia.org/wiki/Bitmap

,--
9. Would be nice if it had GUI capabilities.
`--

MASM32 didn't provide this feature either.  This service is provided by the Xorg, the Window Manager, and your chosen framework (QT, GTK, etc..).

,--
10. Would be nice if there was a book like "NASM for Dummies" to help me get acclimated to the language.
`--

MASM32 didn't provide this feature either.

,--
If someone has a few moments to answer these questions it would save me a lot of grief. Thanks
`--

Here is a little tip:  The process of "Learning to program" requires the attribute that you are willing to accept "a lot of grief" along the way.  One does not simply *become* a brain surgeon by merely swallowing a pill.  If you are not willing to "put forth the effort", then perhaps programming is the wrong hobby for you?  Have you ever thought about taking up knitting??

nobody

  • Guest
Re: Can NASM do the following in Ubuntu
« Reply #3 on: February 19, 2009, 08:01:43 PM »
,--
Here is a little tip: The process of "Learning to program" requires the attribute that you are willing to accept "a lot of grief" along the way. One does not simply *become* a brain surgeon by merely swallowing a pill. If you are not willing to "put forth the effort", then perhaps programming is the wrong hobby for you? Have you ever thought about taking up knitting??
`--

Sorry if that sounded harsh.  I just don't understand why you are expecting a screwdriver to do the job of a bulldozer??

When you mentioned "MASM32" experience, I understood you to mean the package available here:

http://www.movsd.com/

98% of the time, this implies "a lot of grief" while spending lots and lots of time sifting through the mountain of material available here:

http://msdn.microsoft.com/en-us/library/aa383749(VS.85).aspx

Perhaps, when you say "MASM32" you are talking about something else entirely??