0

I need help as to how 2 change machine codes 2 binaries or hex like mov to mayb 101011111, yeah, u know like own compiler

6
Contributors
11
Replies
12
Views
10 Years
Discussion Span
Last Post by SamY
0

u did't understand me.I meant converting instructions into binary like,
int mayb 10111 in binary conversion, u get right?
like all the machines codes to binaries.or a program into bin file. give me the equivalent of the codes in binaries

0

u did't understand me.I meant converting instructions into binary like,
int mayb 10111 in binary conversion, u get right?
like all the machines codes to binaries.or a program into bin file. give me the equivalent of the codes in binaries

It's called an assembler. Unless you want a text file consisting of strings of 1's and 0's; in which case there is unlikely to be any commercial or freeware program that can do that - it's too unusual, and you would have to write your own. You would need to start by downloading some technical reference manuals from Intel's website.

0

It is true that some genius at AMD had the bright idea of reassigning the opcode for the inc instruction, so that is no longer available on 64 bit processors running in 64 bit mode, but otherwise opcodes generally don't change.

0

Given that we are told processor belongs to the x86 family...

The OP never said that. I still can't figure out what they want.

0

Given that we are told processor belongs to the x86 family, that is hardly in dispute, is it? A program which converts assembly language into machine code (opcodes) is definitely called an assembler.

Just like the OP never said he wanted a program to convert assembly to machine code, just like I never said a program that converted assembly to machine code wasn't an assembler, so that's hardly in dispute either, is it? :rolleyes:

0

I need help as to how 2 change machine codes 2 binaries or hex like mov to mayb 101011111, yeah, u know like own compiler

Not sure what you are wanting to do, but here are some resources to check out. First, take a look at Randall Hyde's discussion of a "Y86" simplified CPU --

some background:
3.12 Bit Fields and Packed Data
http://webster.cs.ucr.edu/AoA/Windows/HTML/DataRepresentationa7.html#999885

the "Y86" encoding explained:
5.3 Basic Instruction Design Goals
http://webster.cs.ucr.edu/AoA/Windows/HTML/ISA.html#1013428

Then look at Daniel Sterling's SML: Simple Machine Language
http://www.lost-habit.com/sml/

You also might want to do some basic research into compiler construction. Here are a few usefull links:
http://www.faqs.org/faqs/compilers/faq/
http://www.freetechbooks.com/viewforum.php?f=14
http://cs.wwc.edu/~aabyan/464/Book/

Nathan.

0

Thanx guys i'll lok into it and if i've mo' problems i'll contact you

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.