Click here to Skip to main content
12,999,417 members (82,917 online)
Rate this:
Please Sign up or sign in to vote.

I need a C program which accepts assembly program and gives a corresponding binary program.
Posted 1-Dec-11 1:26am
Updated 1-Dec-11 4:27am
André Kraak 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 1-Dec-11 10:12am
thank u for sugestion.
Mehdi Gholam 1-Dec-11 8:28am
Do you want a compiler?
idrees11 1-Dec-11 10:15am
thanks,I just want c program which accepts assembly program and converts it into binary,not is just an project work.(for Ibm360).
Yvan Rodrigues 1-Dec-11 10:25am
You really should have mentioned the IBM 360 part since this is predominantly a Windows site.
Rate this: bad
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[^].
Albert Holguin 1-Dec-11 9:41am
Must have his google access blocked, +5
SAKryukov 1-Dec-11 11:03am
Not only you did understand the question which OP does not really understand, you even answered. :-) My 5.
Rate this: bad
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.[^][^][^]
These are a few examples of the program.
Yvan Rodrigues 1-Dec-11 10:19am
SAKryukov 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...
Shakti Misra 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
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 :)

There are two assemblers depending on which assembly you use:[^]

There are decades of books on 360 assembly.[^]
IBM 360 books on Amazon[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 1 Dec 2011
Copyright © CodeProject, 1999-2017
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