Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #31 (permalink)  
Old 11-29-2007, 12:50 PM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 474
Last Blog:
Just over the next hil...
Rep Power: 10
G_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura about
Default

The other thing with assemblers. Different ones use different relocatable binary formats. In Linux you will likely use ELF, in Windows there's PE. Any assembler will have to support the binaries of your systems linker, many support several.

WRT other OS dependent stuff. It's mostly about calling conventions. You'll use different ABI's depending on platform. This goes from how they handle function calls to what interrupts the system uses. You can use one assembler to produce Linux code from Windows, it just probably won't work on Windows without modification.

As for not knowing C. Don't worry. Essentially you traditionally pick a register and say all returned values will be stored in that register (perhaps if you use a double word variable you will have a convention for the second register). Then you establish a similar convention for passed arguments. Once you've done this you are left handling what state you have to push on the stack (so it is saved) before a new function call so that function can use your registers. The best advice that can be given is to explicitly state in comments what each variable in a function is, there aren't nice labels in ASM programming (at least there aren't always nice labels).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 12-29-2007, 06:28 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 696
Last Blog:
Programs Under the Hoo...
Rep Power: 12
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default

I'm having an issue with creating a disassembler in C/C++. Can someone help? I posted a thread on this in the C/C++ section titled "Need Help With Disassembler".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #33 (permalink)  
Old 12-29-2007, 06:39 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Then people would help you in there. this is not exactly the right thread to help you on such thing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #34 (permalink)  
Old 12-29-2007, 06:40 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 696
Last Blog:
Programs Under the Hoo...
Rep Power: 12
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default

I made a post here because no one was helping. Kinda letting people know, you know?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #35 (permalink)  
Old 12-29-2007, 08:41 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

IMO a dissembler is not an easy thing to do... maybe too complicated for people to help you out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #36 (permalink)  
Old 12-29-2007, 08:56 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 696
Last Blog:
Programs Under the Hoo...
Rep Power: 12
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default

The problem I'm having is more theoretical. I can handle the disassembler part myself.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #37 (permalink)  
Old 07-15-2008, 03:06 PM
softfalls softfalls is offline
Newbie
 
Join Date: Jul 2008
Posts: 2
Rep Power: 0
softfalls is on a distinguished road
Default Re: Free Assembly Tutorials

thanks these web sites will really help a lot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #38 (permalink)  
Old 10-04-2008, 10:34 AM
Coldhearth Coldhearth is offline
Learning Programmer
 
Join Date: Oct 2008
Posts: 35
Rep Power: 1
Coldhearth is on a distinguished road
Default Re: Free Assembly Tutorials

Hey there, I would like to start learning assembler language but I can't figure out wish assembler to learn... because I'm using an Intel based Macbook pro Intel Core Duo.
Is this the same assembler of intel based computers (I think x86)? Or isn't this the same?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #39 (permalink)  
Old 10-05-2008, 06:55 AM
G_Morgan G_Morgan is offline
Guru
 
Join Date: Oct 2007
Age: 24
Posts: 474
Last Blog:
Just over the next hil...
Rep Power: 10
G_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura aboutG_Morgan has a spectacular aura about
Default Re: Free Assembly Tutorials

Quote:
Originally Posted by Coldhearth View Post
Hey there, I would like to start learning assembler language but I can't figure out wish assembler to learn... because I'm using an Intel based Macbook pro Intel Core Duo.
Is this the same assembler of intel based computers (I think x86)? Or isn't this the same?
The intel computers are x86 or x86_64 for the 64 bit versions.

You will likely need to use the assembler that comes as part of the Mac tool chain. I believe they use GCC so the assembler can be invoked with the 'as' command from the terminal.

That means you want to look up the AT&T syntax. The intel machines have two classes of syntax. The native intel format and the AT&T format used by GCC. Most tutorials would be in the intel format. There might be a NASM port to OSX if you would prefer this. The differences between them are purely cosmetic though. The same calls exist in both.

A good trick if you know some C is to compile your code to assembly rather than to native code. You can then see the translation and how to do things like invoking library functions and how OS X handles arguments for things like C functions. Make sure you turn off optimisations or it might be unreadable.

Nice Intel assembler text...

//edit - if you are struggling there's a good book on Linux assembly programming out there for free. You will need to modify a few things but it is a good introduction to AT&T syntax assembly programming.//
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #40 (permalink)  
Old 10-05-2008, 05:40 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 696
Last Blog:
Programs Under the Hoo...
Rep Power: 12
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: Free Assembly Tutorials

The Art of Assembly Language Programming

This covers just about everything a beginner to intermediate programmer would want to know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Java Tutorials EdSquareCat Java Help 2 08-22-2007 02:25 AM
Lots of free Tutorials Saint General Programming 6 10-15-2006 12:24 PM
General: Tutorial, Keep your PC secure for Free! TcM Tutorials 2 09-21-2006 01:51 PM
Free Online PHP Tutorials RobSoftware PHP Forum 5 08-24-2006 05:38 PM
Assembly tutorials Kaabi General Programming 1 07-05-2006 12:18 PM


All times are GMT -5. The time now is 01:20 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads