Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C ASM GimmeCode machine
Hallo,
 
I need a C program which accepts assembly program and gives a corresponding binary program.
Posted 1-Dec-11 2:26am
Edited 1-Dec-11 5:27am
v3
Comments
André Kraak at 1-Dec-11 7:30am
   
DO NOT SHOUT when asking a question. When you use all capital letters it is seen as shouting on the Internet and considered rude. Next time when posting a question please use proper capitalization.
idrees11 at 1-Dec-11 10:12am
   
thank u for sugestion.
Mehdi Gholam at 1-Dec-11 8:28am
   
Do you want a compiler?
idrees11 at 1-Dec-11 10:15am
   
thanks,I just want c program which accepts assembly program and converts it into binary,not compiler.it is just an project work.(for Ibm360).
Yvan Rodrigues at 1-Dec-11 10:25am
   
You really should have mentioned the IBM 360 part since this is predominantly a Windows site.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This is called an assembler. An assembler converts mnemonics and opcodes to binary machine language.
 
An assembler targets a specific microprocessor or microcontroller, so the one you need will depend on the processor on which the code needs to run.
 
If I assume you're targeting Intel x86 processors for DOS or Windows, you want an assembler like MASM32[^].
  Permalink  
Comments
Albert Holguin at 1-Dec-11 9:41am
   
Must have his google access blocked, +5
SAKryukov at 1-Dec-11 11:03am
   
Not only you did understand the question which OP does not really understand, you even answered. :-) My 5.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

If you want an API to do it, you can use a just in time API.
https://developer.mozilla.org/En/Nanojit[^]
http://code.google.com/p/asmjit/[^]
http://code.google.com/p/blitjit/[^]
These are a few examples of the program.
  Permalink  
Comments
Yvan Rodrigues at 1-Dec-11 10:19am
   
Neat.
SAKryukov at 1-Dec-11 11:05am
   
I like the answer, my 5. Don't you think it's unlikely could be used by someone asking this question? A person who did not know what's Assembler...
--SA
Shakti Misra at 1-Dec-11 11:33am
   
Well I interpreted the question differently, I thought he wanted something like a just in time. My bad.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

If it's for an IBM 360 that's quite a different tool that you need Smile | :)
 
There are two assemblers depending on which assembly you use: http://en.wikibooks.org/wiki/360_Assembly/360_Assemblers[^]
 
There are decades of books on 360 assembly.
http://en.wikibooks.org/wiki/360_Assembly[^]
IBM 360 books on Amazon[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 BillWoodruff 85
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 1 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100