Hi all,

I'm starting to get back in to assembly programming, (I previously did a little bit on linux) so would like some advice.

I'm mostly interested at this point just making applications for windows (and programming it on windows too).  I have Nasm but nothing else - can't even find a simple linker that I can use; plus any references I do find to linkers / IDEs / xyz have broken links or doesn't indicate support for 64bit assembly leaving me wasting a lot of time just searching for applications just to start doing ASM at the moment T__T;; 

The other bit I never really got were includes / using libraries /DLL etc.  Do I download the windows SDK, include the header files and a simple job done?  Does there have to be a C compiler installed to do this or do I need to download ASM based header files etc?

I actually found it easier (when i was doing some assembly in linux) to grab the OS interrupt and pass all the Raw values to set up something like a Socket (which really isnt productive) but I can understand how it works that way, but I can never find a detailed explanation on includes /using DLLs with assembly on how it actually all works and comes together so i actually know what im doing -_-;;

Thanks in advanced.
Posted on 2011-11-02 08:55:05 by lukus001
Get the NASMX package http://www.asmcommunity.net/projects/nasmx/ for Windows.  You will find everything you need to do 32/64 bit assembly programming including linker, resource compiler, help files, and lots of example code.  Start by assembling the samples and grow your own apps from them.
Posted on 2011-11-02 11:01:31 by p1ranha
Hi p1ranha!

Thanks for the reply! didn't think NasmX had a linker as well :3 I actually came across that linker a few times but wasn't sure if i should use it since it was still 'beta'; though I guess it works fine.

Thanks again.
Posted on 2011-11-03 08:47:58 by lukus001
NasmX is a complete development package which brings together all the basic tools which a programmer should need (minus a debugger) for development on a variety of platforms. It includes tools by the Netwide Assembler development team (www.nasm.us), Jeremy Gordon (www.godevtool.com), and Ketil Olsen (www.oby.ro/rad_asm). The header/macro set itself is developed by Rob Neff based on the work of Keith Kanios.

Given that NasmX is made up of so many pieces which come from a wide variety of developers means that there is a high probability that you'll see components used elsewhere.

If you also need a good editor to go along with the package, I suggest trying out Gedit (a cross platform editor) along with the various plugins which give it a lot of really nice features. I've used it for years now and since you said you were familiar with Linux, you might have already made use of it. For NASM support, try this modification of nathanpc's asm-intel.lang file for Gedit.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language _name="Assembler (Intel)" version="1.0" _section="Sources" globs="*.asm" mimetypes="text/x-asm;text/x-assembler">


<line-comment _name = "Line Comment" style= "Comment">

<block-comment _name = "Block Comment" style = "Comment">

<string _name = "NASM Identifiers" style = "Keyword" end-at-line-end = "TRUE">

<pattern-item _name = "Operators" style = "Keyword">

<pattern-item _name = "Label" style = "Preprocessor">

<pattern-item _name = "Local Label" style = "Preprocessor">

<string _name = "String" style = "String" end-at-line-end = "TRUE">

<keyword-list _name = "Registers" style = "Data Type" case-sensitive="FALSE"
match-empty-string-at-beginning = "TRUE"
match-empty-string-at-end = "TRUE">

<!-- intel x86-64 -->



<!-- intel 386 -->











<keyword-list _name = "Primitive Types" style = "String" case-sensitive="FALSE"
match-empty-string-at-beginning = "TRUE"
match-empty-string-at-end = "TRUE">

<keyword-list _name = "Directives" style = "Preprocessor" case-sensitive="FALSE"
match-empty-string-at-beginning = "TRUE"
match-empty-string-at-end = "TRUE">

<keyword-list _name = "Assembler Equates" style = "Preprocessor" case-sensitive="TRUE"
match-empty-string-at-beginning = "TRUE"
match-empty-string-at-end = "TRUE">

<pattern-item _name = "First Pass" style = "Preprocessor">

<pattern-item _name = "Character Constant" style = "String">

<pattern-item _name = "Decimal" style = "Decimal">

<pattern-item _name = "Floating Point Number" style = "Floating Point">

<pattern-item _name = "Hex Number" style = "Base-N Integer">


Gedit/Windows can be obtained from the Gnome Live website.
Posted on 2011-11-03 22:06:58 by Synfire
Cheers synfire

Gedit certainly looks good - was definitely in need of an editor.

Many tanks.
Posted on 2011-11-04 09:15:00 by lukus001