![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2008
Posts: 5
Rep Power: 0
![]() |
Looking for advice
I'm anxious to get into assembly, I've already decided on a few things, but I don't know what tools would be best for my situation.
I have the basic idea of how assembly works with specifying different memory types and where certain values need to be for various calls but I really can't apply any of it just yet. What I'm looking for. I want to use an intel syntax assembler but it also needs to be compatible on both windows and linux. (or maybe 2 different assemblers that aren't too different in syntax). Learning material, I own a hard-copy of the 6 intel developer manuals but they are really useless at the moment. I really appreciate any advice you can provide. |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Re: Looking for advice
__________________
Steven Skiena - Algorithms ,[->+>+<<]>>[-<<+>>]>++++++++[-<++++++++>]<+[-<->]>+<<[[-]+++++++++++++++.[-]>]>>[+++++++++.[-]],brainf**k -- It's such a pretty language |
|
|
|
|
|
#3 |
|
Professional Programmer
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 330
Rep Power: 2
![]() |
Re: Looking for advice
First, look at the page Freaky Chris gave you. It's a great start.
Second, I use an assembler called NASM. It is free and can work on both Windows and Linux. Also (you have to pay for this), get a book called step by step assembly. It's a great intro to coding assembly using nasm for DOS and Linux. It's the only book I recommend to get for beginners at assembly.
__________________
SYNTAX ERROR ... |
|
|
|
|
|
#4 |
|
C/C++ Developer
Join Date: Sep 2008
Location: Florida, USA
Posts: 43
Rep Power: 0
![]() |
Re: Looking for advice
Great resource, Chris. I have added that to my bookmarks, even though I don't normally develop in Assembly (nice to have a good reference when I do drop down for speed).
Another good Assembler is MASM (Microsoft's assembler), but I am pretty sure that it does not work on Linux (it's amazing it works on Windows ... ). I have not tried taking code written for MASM and seeing if it will compile without any changes using NASM on Linux, but one would assume that some changes would be necessary simply because you are talking about two different OSes and two different kernels.Just out of curiosity, has anyone tried writing an assembly app and running it on Vista? With all the "security" features that Microsoft has put into the OS, I wonder if you can still use assembly apps/routines for low-level, speedy routines or if it will get flagged as trying to do something "inappropriate" according to the OS.
__________________
-- William |
|
|
|
|
|
#5 | ||
|
SEXY SHOELESS GOD OF WAR!
![]() Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,198
Rep Power: 5
![]() |
Re: Looking for advice
Quote:
Quote:
In other words, I can't see why it would matter if the code was compiled, assembled, or even written by sticking raw opcodes together with a hex editor.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
||
|
|
|
|
|
#6 | |
|
Professional Programmer
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 330
Rep Power: 2
![]() |
Re: Looking for advice
Quote:
I remember a mate doing that for an assignment!
__________________
SYNTAX ERROR ... |
|
|
|
|
|
|
#7 | |
|
C/C++ Developer
Join Date: Sep 2008
Location: Florida, USA
Posts: 43
Rep Power: 0
![]() |
Re: Looking for advice
Quote:
You know, just thinking about it, you're absolutely right - they wouldn't know from where the code came. I guess I was originally thinking about low-level system calls vs going through the NET framework, but didn't quite get that out. hmm ... brain cramp, I suppose ![]()
__________________
-- William |
|
|
|
|
|
|
#8 |
|
Newbie
Join Date: Oct 2008
Posts: 5
Rep Power: 0
![]() |
Re: Looking for advice
Sorry, been away - actually I forgot about this until I read some of my filtered email, anyways - Chris, that is really an amazing page. used it a bit so far.
NASM is what I was thinking about I wasn't sure about other possibilities MASM isn't really in question if its win only - maybe once I have a better understanding. Step by step assembly, I believe I have the ebook to that around here somewhere. Since Its recommended I will have to dig it up. About the whole Vista and stuff... wut? LOL! Thanks everyone. |
|
|
|
|
|
#9 |
|
Professional Programmer
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 330
Rep Power: 2
![]() |
Re: Looking for advice
Don't go there ... you may never come back. If you want to use Assembly with vista (Good luck), use MASM.
ADDON: I don't know anyone who does programming in a 64-BIT environment with Assembly.
__________________
SYNTAX ERROR ... Last edited by Grich; Oct 21st, 2008 at 11:01 PM. Reason: add on |
|
|
|
|
|
#10 |
|
Newbie
Join Date: Oct 2008
Posts: 5
Rep Power: 0
![]() |
Re: Looking for advice
I've been trekking through Assembly Language Step-by-Step. Turns out, its a really good book. Understanding a handful of what was presented in the earlier chapters made it a bit of a bore, but other than that the author is very good it has so far been much less cumbersome then trying to find a good book on C.
Now the assembly begins, was able to read/skim/skip up to chapter 6 ( 6 of 13 chapters and 5 appendixes ) |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|