best Programming software for Assembly?
Page 1 of 1
JackQ
Non-expret in Derps lagunge



Posts: 14181
Location: Kibbutznik, Israel
PostPosted: Sat, 18th Oct 2014 11:00    Post subject: best Programming software for Assembly?
I came to my final year at practical engineering studding,now I'm at the Hard part with all what people are saying to me: Assembly.

time to organize things up,I'm looking for the best Programming software to use cuz I'm gonna use my laptop a lot,and Assembly is considered a bit 'clumsy' programming language to use,I'm already finished with the most major other programming languages,C,Java,C++... Assembly is essential to get my Practical Engineer's degree.

thanks


"Fuck Denuvo"

Your personal opinions != the rest of the forum
Back to top
Guy_Incognito




Posts: 3436

PostPosted: Sat, 18th Oct 2014 11:07    Post subject:
There's no just "assembly", you have to pick a platform and see which compilers are available and what would you actually do with it. Actual compilers and the instruction sets they support heavily depend on specific architectures.

Would you code on Intel, ARM Cortex-A family, Cortex-M... ? If Intel, would you code DOS-like programs in 8086 mode by calling BIOS routines, or would you code Windows applications by calling Windows API routines directly from your asm code?

I would suggest going with ARM Cortex-M4 family, it's very powerful (for a MCU), and STMicro has a nice cheap development kit (STM32F4DISCOVERY).
Back to top
JackQ
Non-expret in Derps lagunge



Posts: 14181
Location: Kibbutznik, Israel
PostPosted: Sat, 18th Oct 2014 11:17    Post subject:
as far as I concern,I don't need to program to a dedicate hardware when it come to ASM,sorry that I didn't said it before,not with ASM at least,I think after this year there going to be a project you need to make and then the Hardware would matter.... but even then you could do it with better,more advanced languages.

I'm still at pretty basics when it's come to the language,I just need something like Visual C or eclipse to ASM:
you know,create matrix,String etc.. just of course using ASM ,and the result will be printed on the CMD,something simple....

thanks for the help tough.


"Fuck Denuvo"

Your personal opinions != the rest of the forum
Back to top
Werelds
Special Little Man



Posts: 15098
Location: 0100111001001100
PostPosted: Sat, 18th Oct 2014 13:40    Post subject:
There is no single IDE for ASM, exactly because ASM by definition isn't a universal language. Every chip has its own ASM dialect. Of course there are some general instructions that they all have (MOV, ORG, RET, calls, (non-)zero jumps and so on), but in most cases there's also some unique instructions. More importantly though, every chip has its own registers and you need to know those to write the ASM code properly. Aside from that, with every chip you usually get an IDE and there are some non-instruction difference between compilers (i.e. some have extra types of labels for flow control).

So even if you're just looking to learn ASM in general, you still need to pick a platform to work for Smile

It's been more than a few years since my ASM, but I've heard good things about MASM, that's probably your best option (Google it). That's writing x86 (Intel) ASM though, whereas your project next year will most likely involve some kind of microcontroller from Siemens or Philips. So be warned, while you'll learn how to deal with memory and registers, you'll still need the microcontroller's manual to look up the correct registers to do stuff, as well as that controller's IDE Wink
Back to top
shole




Posts: 3363

PostPosted: Sat, 18th Oct 2014 21:54    Post subject:
asm is not really a proper language
it's the base cpu instructions in character notation
an assembler compiler is essentially just a string replace to equivalent bytes

it's best to think of writing assembler code in functional chunks you can write on a piece of paper to remember and attach together like legos to do things with
it's all basically this:

1. put pieces in slots (data to registers)
2. pull the crank (execute instruction)
3. take result from slot

i think we used MASM where i studied and we just used notepad and a piece of paper to plan the application on
i'm sure there's some syntax highlighters for MASM and the more common x86 instruction sets on popular editors (at least notepad++ has)

after quick googling, it appears there are some IDEs:
http://www.visualmasm.com/index.html
http://www.winasm.net/index.php?ind=gallery&op=section_view&idev=1
http://www.digitaction.com/index.php/products/masm-builder-integrated-development-environment-for-masm32.html
popups reminding me of instruction registers is a really useful feature, i'm sure
unless you're building a huge-ass system with asm (don't) you should stick to a very bare bones IDE or none at all
in realistic practice, you would only ever need assembly to write embedded right-on-the-hardware code or to dissassemble, modify or reverse engineer existing compiled software
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73231
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Sat, 18th Oct 2014 23:02    Post subject:
Why not just use any C/C++ IDE, and use an `asm` block (or `__asm__`) and do your thing there?
Back to top
JackQ
Non-expret in Derps lagunge



Posts: 14181
Location: Kibbutznik, Israel
PostPosted: Sun, 19th Oct 2014 12:00    Post subject:
thanks for the Help and useful info here,current year we did learned some ASM at the very basic I guess,didn't know it's very different in hardware,I guess even more reasons not to use it for final project Very Happy

you didn't have to use any software on PC to actually pass the ASM exams Razz ,all the work done in papers and were mostly "understanding the codes basics commands" and a bit writing(which you didn't even have to answer it to makes a pass grade).

this year going to be different and there going to be some projects like creating matrix etc.. and a Programming Software is pretty much must,but I don't think it will be further then creating matrix/strings like we did in Basic C,even in Java we did more "advanced" things like creating a basic site. there will be final exam on it tough.

it seems the lecturer talked about Virtual PC or masm as been mention,but it is been quite a while I touched it. I guess I will just have to wait and see,what the excat hardware/software needed.


"Fuck Denuvo"

Your personal opinions != the rest of the forum


Last edited by JackQ on Tue, 21st Oct 2014 19:31; edited 2 times in total
Back to top
Guy_Incognito




Posts: 3436

PostPosted: Sun, 19th Oct 2014 12:23    Post subject:
You get MASM with Visual Studio (vs_folder\VC\bin\ml.exe), but you can't create ASM projects in VS, I guess it's just there for asm snippets in C/C++ code. You can probably use it directly from the command line.
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Sun, 19th Oct 2014 14:33    Post subject:
We just debugged our c++ code with ASM and as Leo said. Was quite easy tbh.


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
[mrt]
[Admin] Code Monkey



Posts: 1342

PostPosted: Fri, 24th Oct 2014 18:56    Post subject:
For windows its usually masm - comes with Microsofts Visual Studio, then the other is,
nasm - usually used on linux and open-source derivatives. Found at http://www.nasm.us

But they both work on the same platform, the x86.

Usually assemblers do not come with an IDE, so there is no nifty interfaces, but more than likely your favourite editor and a makefile/batch-script to compile. For debugging I used this asm debugger tool: http://ald.sourceforge.net/

Hope that helps you. Enjoy your trip to the lowest-level Smile


teey
Back to top
JackQ
Non-expret in Derps lagunge



Posts: 14181
Location: Kibbutznik, Israel
PostPosted: Wed, 5th Nov 2014 15:52    Post subject:
There seems to be 2 options we are using,DOSBOX for runing masm32 or assembly masm32 on XP(original or virtual) the coding 'text' on qeditor,but you can still compile it and run it to see the results.

I personally using msam on XP virtual(my laptop is WIN8) as it more comfortable. is there any updated version of qeditor? I want to see errors while coding,similar to VC or eclipse,thanks


"Fuck Denuvo"

Your personal opinions != the rest of the forum


Last edited by JackQ on Sat, 8th Nov 2014 12:28; edited 1 time in total
Back to top
[mrt]
[Admin] Code Monkey



Posts: 1342

PostPosted: Fri, 7th Nov 2014 18:31    Post subject:
A tiny bit has changed since the last time I had my mits in the assembly cookie jar.

Basically masm is now ml. So if you wish to use it its bundled with Visual Studio and there are two versions, ml.exe and ml64.exe.

As far as IDE's go try http://dman95.github.io/SASM/english.html

Hope this helps and you don't have to bother with virtual machines anymore.

BTW, I wouldn't put too much effort in live syntax checking as ASM is basically as low as you can get. There isn't much in the way of syntax, when you make a mistake you know it.


teey
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group