BIn files

Reply

Join Date: Jun 2006
Posts: 49
Reputation: SamY is an unknown quantity at this point 
Solved Threads: 1
SamY's Avatar
SamY SamY is offline Offline
Light Poster

BIn files

 
0
  #1
Feb 14th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,358
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1463
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: BIn files

 
0
  #2
Feb 14th, 2007
your question is not very clear -- what exactly do you want to do? This will move a binary file into ax register
  1. mov ax, 01010101B
Last edited by Ancient Dragon; Feb 14th, 2007 at 7:13 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 49
Reputation: SamY is an unknown quantity at this point 
Solved Threads: 1
SamY's Avatar
SamY SamY is offline Offline
Light Poster

Re: BIn files

 
0
  #3
Feb 16th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 134
Reputation: mathematician is an unknown quantity at this point 
Solved Threads: 3
mathematician mathematician is offline Offline
Junior Poster

Re: BIn files

 
0
  #4
Feb 16th, 2007
Originally Posted by SamY View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 327
Reputation: Colin Mac is on a distinguished road 
Solved Threads: 22
Colin Mac Colin Mac is offline Offline
Posting Whiz

Re: BIn files

 
0
  #5
Feb 17th, 2007
They're called opcodes it and depends on the processor.
example http://courses.ece.uiuc.edu/ece390/r...pcodes.html#HA
Last edited by Colin Mac; Feb 17th, 2007 at 7:14 pm.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 134
Reputation: mathematician is an unknown quantity at this point 
Solved Threads: 3
mathematician mathematician is offline Offline
Junior Poster

Re: BIn files

 
0
  #6
Feb 17th, 2007
Originally Posted by Colin Mac View Post
They're called opcodes it and depends on the processor.
example http://courses.ece.uiuc.edu/ece390/r...pcodes.html#HA
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 134
Reputation: mathematician is an unknown quantity at this point 
Solved Threads: 3
mathematician mathematician is offline Offline
Junior Poster

Re: BIn files

 
0
  #7
Feb 17th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 49
Reputation: Purple Avenger is an unknown quantity at this point 
Solved Threads: 0
Purple Avenger Purple Avenger is offline Offline
Light Poster

Re: BIn files

 
0
  #8
Feb 17th, 2007
Originally Posted by mathematician View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 327
Reputation: Colin Mac is on a distinguished road 
Solved Threads: 22
Colin Mac Colin Mac is offline Offline
Posting Whiz

Re: BIn files

 
0
  #9
Feb 17th, 2007
Originally Posted by mathematician View Post
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:
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 129
Reputation: Evenbit is on a distinguished road 
Solved Threads: 4
Evenbit's Avatar
Evenbit Evenbit is offline Offline
Junior Poster

Re: BIn files

 
0
  #10
Feb 18th, 2007
Originally Posted by SamY View Post
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/Window...a7.html#999885

the "Y86" encoding explained:
5.3 Basic Instruction Design Goals
http://webster.cs.ucr.edu/AoA/Window...A.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.
while (CPU is present) {some assembly required}
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC