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

your question is not very clear -- what exactly do you want to do? This will move a binary file into ax register

mov ax, 01010101B

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

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.

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.

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.

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:

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.

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

This article has been dead for over six months. Start a new discussion instead.