接受汇编程序并给出二进制程序的C程序 [英] C program which accepts assembly program and gives binary program

查看:103
本文介绍了接受汇编程序并给出二进制程序的C程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要一个C程序,该程序可以接受汇编程序并提供相应的二进制程序.汇编程序将助记符和操作码转换为二进制机器语言.

汇编程序针对的是特定的微处理器或微控制器,因此您所需的汇编程序将取决于需要在其上运行代码的处理器.

如果我假设您的目标是DOS或Windows的Intel x86处理器,则需要像 MASM32 [ https://developer.mozilla.org/En/Nanojit [ http://code.google.com/p/asmjit/ [ http://code.google.com/p/blitjit/ [ http://en.wikibooks.org/wiki/360_Assembly/360_Assemblers [^ ]

关于360组装的书籍已有数十年.
http://en.wikibooks.org/wiki/360_Assembly [ Amazon上的IBM 360图书 [ 解决方案

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[^].


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.


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: 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[^]


这篇关于接受汇编程序并给出二进制程序的C程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆